Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ candidates=kw_extractor.extract_keywords(text)
|
|
21 |
candidates=[candidate[0] for candidate in candidates]
|
22 |
from keyphrase_vectorizers import KeyphraseCountVectorizer
|
23 |
vectorizer=KeyphraseCountVectorizer(stop_words=patseer_stopwords)
|
24 |
-
keywords=kw_model.extract_keywords(text,keyphrase_ngram_range=(1, 3),top_n=50,vectorizer=KeyphraseCountVectorizer())
|
25 |
|
26 |
if keywords != []:
|
27 |
st.info("Extracted keywords")
|
|
|
21 |
candidates=[candidate[0] for candidate in candidates]
|
22 |
from keyphrase_vectorizers import KeyphraseCountVectorizer
|
23 |
vectorizer=KeyphraseCountVectorizer(stop_words=patseer_stopwords)
|
24 |
+
keywords=kw_model.extract_keywords(text,candidates,keyphrase_ngram_range=(1, 3),top_n=50,vectorizer=KeyphraseCountVectorizer())
|
25 |
|
26 |
if keywords != []:
|
27 |
st.info("Extracted keywords")
|