Spaces:
Sleeping
Sleeping
medmediani
commited on
Commit
·
dcb5fc8
1
Parent(s):
c9bc296
Changed the model path
Browse files
.ipynb_checkpoints/kwextractor-checkpoint.py
CHANGED
@@ -35,7 +35,7 @@ class KeyWordExtractor():
|
|
35 |
top_n=nkws,
|
36 |
#use_maxsum=True,nr_candidates=20, top_n=5,
|
37 |
#use_mmr=True,
|
38 |
-
|
39 |
stop_words=None)
|
40 |
)
|
41 |
print("KWS=",kws,file=sys.stderr)
|
|
|
35 |
top_n=nkws,
|
36 |
#use_maxsum=True,nr_candidates=20, top_n=5,
|
37 |
#use_mmr=True,
|
38 |
+
diversity=0.8,
|
39 |
stop_words=None)
|
40 |
)
|
41 |
print("KWS=",kws,file=sys.stderr)
|
kwextractor.py
CHANGED
@@ -35,7 +35,7 @@ class KeyWordExtractor():
|
|
35 |
top_n=nkws,
|
36 |
#use_maxsum=True,nr_candidates=20, top_n=5,
|
37 |
#use_mmr=True,
|
38 |
-
|
39 |
stop_words=None)
|
40 |
)
|
41 |
print("KWS=",kws,file=sys.stderr)
|
|
|
35 |
top_n=nkws,
|
36 |
#use_maxsum=True,nr_candidates=20, top_n=5,
|
37 |
#use_mmr=True,
|
38 |
+
diversity=0.8,
|
39 |
stop_words=None)
|
40 |
)
|
41 |
print("KWS=",kws,file=sys.stderr)
|