Ezi Ozoani commited on
Commit
a7d07a4
·
1 Parent(s): f76a6cd
Files changed (1) hide show
  1. read_extract.py +3 -3
read_extract.py CHANGED
@@ -224,9 +224,9 @@ def get_keywords(datatype, task, field, pos_text, neg_text):
224
  print('Extracting keywords...')
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()
 
224
  print('Extracting keywords...')
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()