Spaces:
Sleeping
Sleeping
Ezi Ozoani
commited on
Commit
·
f76a6cd
1
Parent(s):
4fe8e41
this shouldn't fix it
Browse files- read_extract.py +2 -1
read_extract.py
CHANGED
@@ -225,7 +225,8 @@ def get_keywords(datatype, task, field, pos_text, neg_text):
|
|
225 |
datatype, task, field = datatype.lower(), task.lower(), field.lower()
|
226 |
|
227 |
#stop_words = set(stopwords.words('english'))
|
228 |
-
|
|
|
229 |
stop_words = stop_words.union({'license', 'licensing', 'licensor', 'copyright', 'copyrights', 'patent'})
|
230 |
|
231 |
pos_kw_model = KeyBERT()
|
|
|
225 |
datatype, task, field = datatype.lower(), task.lower(), field.lower()
|
226 |
|
227 |
#stop_words = set(stopwords.words('english'))
|
228 |
+
stops = nltk.corpus.stopwords.words('english')
|
229 |
+
stop_words = set(stops)
|
230 |
stop_words = stop_words.union({'license', 'licensing', 'licensor', 'copyright', 'copyrights', 'patent'})
|
231 |
|
232 |
pos_kw_model = KeyBERT()
|