nontGcob commited on
Commit
821e0e5
·
1 Parent(s): ae326a8

fix spacy and en_core_web_sm errors

Browse files
Files changed (2) hide show
  1. model.py +5 -1
  2. requirements.txt +2 -1
model.py CHANGED
@@ -14,7 +14,11 @@ classifier = transformers.pipeline("zero-shot-classification", model="simple_tra
14
 
15
  import spacy
16
  # Part Of Speech tagging (POS tagging)
17
- nlp = spacy.load("en_core_web_sm")
 
 
 
 
18
 
19
  print('successfully download model')
20
 
 
14
 
15
  import spacy
16
  # Part Of Speech tagging (POS tagging)
17
+ # nlp = spacy.load("en_core_web_sm")
18
+
19
+ # Importing as module.
20
+ import en_core_web_sm
21
+ nlp = en_core_web_sm.load()
22
 
23
  print('successfully download model')
24
 
requirements.txt CHANGED
@@ -145,7 +145,8 @@ six==1.16.0
145
  smart-open==7.0.4
146
  sniffio==1.3.1
147
  soupsieve==2.6
148
- spacy==3.5.0
 
149
  spacy-lookups-data==1.0.0
150
  spacy-legacy==3.0.12
151
  spacy-loggers==1.0.5
 
145
  smart-open==7.0.4
146
  sniffio==1.3.1
147
  soupsieve==2.6
148
+ # spacy==3.5.0
149
+ spacy==3.7.6
150
  spacy-lookups-data==1.0.0
151
  spacy-legacy==3.0.12
152
  spacy-loggers==1.0.5