File size: 215 Bytes
5da64ec
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
# modules/spacy_utils.py
import spacy

def load_spacy_models():
    return {
        'es': spacy.load("es_core_news_lg"),
        'en': spacy.load("en_core_web_lg"),
        'fr': spacy.load("fr_core_news_lg")
    }