AIdeaText commited on
Commit
e285cb4
1 Parent(s): 7807ad5

Create spacy_utils.py

Browse files
Files changed (1) hide show
  1. modules/spacy_utils.py +8 -0
modules/spacy_utils.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import spacy
2
+
3
+ def load_spacy_models():
4
+ return {
5
+ 'es': spacy.load("es_core_news_lg"),
6
+ 'en': spacy.load("en_core_web_lg"),
7
+ 'fr': spacy.load("fr_core_news_lg")
8
+ }