vinni1484 commited on
Commit
deb1ba4
·
1 Parent(s): e86c696

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from keybert import KeyBERT
4
  model = KeyBERT("sentence-transformers/xlm-r-distilroberta-base-paraphrase-v1")
5
 
6
  def keywords(text):
7
- keywords = model.extract_keywords(text,top_n=10)
8
  keywords = dict(keywords)
9
  return keywords
10
 
 
4
  model = KeyBERT("sentence-transformers/xlm-r-distilroberta-base-paraphrase-v1")
5
 
6
  def keywords(text):
7
+ keywords = model.extract_keywords(text,keyphrase_ngram_range=(1,2),top_n=10)
8
  keywords = dict(keywords)
9
  return keywords
10