ana-bernal commited on
Commit
79bfb20
·
1 Parent(s): 8bc3fa6

different way to import spacy language model

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -69,7 +69,8 @@ tag_list = ['c#',
69
  'django']
70
 
71
  # Instantiating language model, english
72
- nlp = spacy.load("en_core_web_sm")
 
73
 
74
  # Importing stopwords
75
  with open('./stopwords/stopwords.txt') as file:
 
69
  'django']
70
 
71
  # Instantiating language model, english
72
+ import en_core_web_sm
73
+ nlp = en_core_web_sm.load()
74
 
75
  # Importing stopwords
76
  with open('./stopwords/stopwords.txt') as file: