Can't find model 'en'
manhph2211 opened this issue · 2 comments
manhph2211 commented
Can't find model 'en'
manhph2211 commented
I found this works:
!python3 -m spacy download de_core_news_sm
!python3 -m spacy download en
import de_core_news_sm
import en_core_news_sm
spacy_de=de_core_news_sm.load()
spacy_en=en_core_web_sm.load()```
dorazhiyuyang commented
for English
python -m spacy download en_core_web_sm
import spacy
trg_lang_model= spacy.load("en_core_web_sm")
or
python -m spacy download en_core_web_trf
import spacy
trg_lang_model = spacy.load("en_core_web_trf")
or
python -m spacy download en_core_web_sm
import en_core_web_sm
trg_lang_model = en_core_web_sm.load()
or
python -m spacy download en_core_web_trf
import en_core_web_trf
trg_lang_model = en_core_web_trf.load()
for German
python -m spacy download de_core_news_sm
import spacy
src_lang_model = spacy.load("de_core_news_sm")
or
python -m spacy download de_dep_news_trf
import spacy
src_lang_model = spacy.load("de_dep_news_trf")
or
python -m spacy download de_core_news_sm
import de_core_news_sm
src_lang_model = de_core_news_sm.load()
or
python -m spacy download de_dep_news_trf
import de_dep_news_trf
src_lang_model = de_dep_news_trf.load()