Create spacy_utils.py
Browse files- 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 |
+
}
|