How to download spacy NLP models using rye? #1004
-
SpaCy is a Python NLP library. > python -m spacy download en_core_web_trf
// main.py
import spacy
nlp = spacy.load("en_core_web_trf")
import en_core_web_trf
nlp = en_core_web_trf.load()
doc = nlp("This is a sentence.")
print([(w.text, w.pos_) for w in doc]) I have trouble running the special download pipeline of SpaCy through rye. |
Beta Was this translation helpful? Give feedback.
Answered by
goschtl
Apr 10, 2024
Replies: 1 comment 6 replies
-
Hi, it's easy you can just use this one
you have to make sure that pip is also installed via
HTH |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
saona-raimundo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
it's easy you can just use this one
rye run python -m spacy download en_core_web_trf
you have to make sure that pip is also installed via
rye add pip
HTH
Christian