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

fix spacy and en_core_web_sm errors

Browse files
Files changed (2) hide show
  1. model.py +3 -3
  2. requirements.txt +4 -2
model.py CHANGED
@@ -14,11 +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
  # Importing as module.
20
- import en_core_web_sm
21
- nlp = en_core_web_sm.load()
22
 
23
  print('successfully download model')
24
 
 
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
@@ -146,7 +146,8 @@ 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
@@ -188,4 +189,5 @@ yarl==1.9.6
188
  # spacy[transformers]
189
  # https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
190
  # spacy[en]==3.2.0
191
- # en-core-web-sm==3.5.0
 
 
146
  sniffio==1.3.1
147
  soupsieve==2.6
148
  # spacy==3.5.0
149
+ # spacy==3.7.6
150
+ spacy==3.5.3
151
  spacy-lookups-data==1.0.0
152
  spacy-legacy==3.0.12
153
  spacy-loggers==1.0.5
 
189
  # spacy[transformers]
190
  # https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz
191
  # spacy[en]==3.2.0
192
+ # en-core-web-sm==3.5.0
193
+ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.5.0/en_core_web_sm-3.5.0-py3-none-any.whl