humlab / the_culture_of_international_relations

Repository for NLP-scripts related to the The Culture of International Relations project
2 stars 3 forks source link

Add language support #2

Closed aibakeneko closed 5 years ago

aibakeneko commented 5 years ago

In 3_text analysis > 1_explore_corpus.ipynb > Load and Prepare Corpus

Request: Add more languages

Note: To add more language support see https://spacy.io/usage/models. Example solution:

textacy_utility.LANGUAGE_MODEL_MAP['it'] = 'it_core_news_sm'
textacy_utility.LANGUAGE_MODEL_MAP['de'] = 'de_core_news_sm'
config.LANGUAGE_MAP = { 'en': 'english', 'fr': 'french', 'it': 'italian', 'de': 'german' }
roger-mahler commented 5 years ago

Closed issue since it is no longer relevant.