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 |
|
23 |
from keyphrase_vectorizers import KeyphraseCountVectorizer
|
24 |
-
keywords=
|
25 |
|
26 |
if keywords != []:
|
27 |
st.info("Extracted keywords")
|
|
|
21 |
candidates = [candidate[0] for candidate in candidates]
|
22 |
|
23 |
from keyphrase_vectorizers import KeyphraseCountVectorizer
|
24 |
+
keywords=model.extract_keywords(text,candidates, keyphrase_ngram_range=(1, 3), top_n=50,vectorizer=KeyphraseCountVectorizer(stop_words=patseer_stopwords))
|
25 |
|
26 |
if keywords != []:
|
27 |
st.info("Extracted keywords")
|