Spaces:
Sleeping
Sleeping
medmediani
commited on
Commit
·
03e9f5b
1
Parent(s):
0072cc0
Changed the model path
Browse files
.ipynb_checkpoints/kwextractor-checkpoint.py
CHANGED
@@ -46,6 +46,6 @@ class KeyWordExtractor():
|
|
46 |
max_kw_ngs=max_kw_ngs if max_kw_ngs is not None else self.MAX_KW_NGS
|
47 |
|
48 |
#Since we are taking only 512 tokens, let's do by paragraph
|
49 |
-
kw=self._extract_by_paragraph(ctxt,
|
50 |
return ", ".join(w for w,_ in kw)
|
51 |
|
|
|
46 |
max_kw_ngs=max_kw_ngs if max_kw_ngs is not None else self.MAX_KW_NGS
|
47 |
|
48 |
#Since we are taking only 512 tokens, let's do by paragraph
|
49 |
+
kw=self._extract_by_paragraph(ctxt,nkws,max_kw_ngs)
|
50 |
return ", ".join(w for w,_ in kw)
|
51 |
|
kwextractor.py
CHANGED
@@ -46,6 +46,6 @@ class KeyWordExtractor():
|
|
46 |
max_kw_ngs=max_kw_ngs if max_kw_ngs is not None else self.MAX_KW_NGS
|
47 |
|
48 |
#Since we are taking only 512 tokens, let's do by paragraph
|
49 |
-
kw=self._extract_by_paragraph(ctxt,
|
50 |
return ", ".join(w for w,_ in kw)
|
51 |
|
|
|
46 |
max_kw_ngs=max_kw_ngs if max_kw_ngs is not None else self.MAX_KW_NGS
|
47 |
|
48 |
#Since we are taking only 512 tokens, let's do by paragraph
|
49 |
+
kw=self._extract_by_paragraph(ctxt,nkws,max_kw_ngs)
|
50 |
return ", ".join(w for w,_ in kw)
|
51 |
|