Spaces:
Runtime error
Runtime error
Commit
·
f5219e4
1
Parent(s):
583c5df
Update app.py
Browse files
app.py
CHANGED
@@ -70,17 +70,17 @@ keyphrase_min = form2.number_input("KeyPhrase ngram range minimum", value = 1, m
|
|
70 |
keyphrase_max = form2.number_input("KeyPhrase ngram range maximum", value = 2, min_value = 1)
|
71 |
form2.caption("Use the keyphrase min and max to set the length of the resulting keywords/keyphrases")
|
72 |
use_maxsum = form2.checkbox("Max Sum Similarity?", value = False)
|
73 |
-
form2.caption("Max sum modifies the keyphrase
|
74 |
nr_candidates = form2.number_input("Enter the number of candidates to consider if maxsum is True", value = 10)
|
75 |
form2.caption("Only meaningful if Max Sum Similarity is selected")
|
76 |
use_mmr = form2.checkbox("Use Maximal Marginal Relevance?", value = False)
|
77 |
-
form2.caption("Maximal Marginal Relevance modifies the keyphrase
|
78 |
diversity = form2.number_input("Enter the diversity", value = 0.7)
|
79 |
-
form2.caption("Diversity only is meaningful if Maximal Marginal Relevance is turned on. This modifies how much the MMR
|
80 |
top_n = form2.number_input("Enter the number of returned keyphrases", value = 10)
|
81 |
min_df = form2.number_input("Enter the minimum document frequency of a word", value = 1, max_value = len(doc))
|
82 |
form2.caption("Only meaningful if extracting the keyphrases of multiple documents")
|
83 |
-
seed_keywords = form2.text_area("Enter a list of keyword (
|
84 |
form2.caption("Due to the implementation details of this in KeyBERT, this doesn't usually heavily impact results")
|
85 |
|
86 |
|
|
|
70 |
keyphrase_max = form2.number_input("KeyPhrase ngram range maximum", value = 2, min_value = 1)
|
71 |
form2.caption("Use the keyphrase min and max to set the length of the resulting keywords/keyphrases")
|
72 |
use_maxsum = form2.checkbox("Max Sum Similarity?", value = False)
|
73 |
+
form2.caption("Max sum modifies the keyphrase algorithm in the following way: we take the 2 x top_n most similar words/phrases to the document. Then, we take all top_n combinations from the 2 x top_n words and extract the combination that are the least similar to each other by cosine similarity.")
|
74 |
nr_candidates = form2.number_input("Enter the number of candidates to consider if maxsum is True", value = 10)
|
75 |
form2.caption("Only meaningful if Max Sum Similarity is selected")
|
76 |
use_mmr = form2.checkbox("Use Maximal Marginal Relevance?", value = False)
|
77 |
+
form2.caption("Maximal Marginal Relevance modifies the keyphrase algorithm in the following way: Instead of simply ranking the cosine similarity of the keyphrases to the document, keyphrases are also ranked against already selected keyphrases")
|
78 |
diversity = form2.number_input("Enter the diversity", value = 0.7)
|
79 |
+
form2.caption("Diversity only is meaningful if Maximal Marginal Relevance is turned on. This modifies how much the MMR algorithm weighs the results")
|
80 |
top_n = form2.number_input("Enter the number of returned keyphrases", value = 10)
|
81 |
min_df = form2.number_input("Enter the minimum document frequency of a word", value = 1, max_value = len(doc))
|
82 |
form2.caption("Only meaningful if extracting the keyphrases of multiple documents")
|
83 |
+
seed_keywords = form2.text_area("Enter a list of keyword (separated with space) which will personalize/guide the extracted keywords", value = "")
|
84 |
form2.caption("Due to the implementation details of this in KeyBERT, this doesn't usually heavily impact results")
|
85 |
|
86 |
|