Page 1 of 1

I cannot fix this error. Based on the error, I have imported and run successfully the "!python -m spacy download en_cor

Posted: Mon May 02, 2022 12:02 pm
by answerhappygod
I cannot fix this error. Based on the error, I have
imported and run successfully the "!python -m spacy download
en_core_web_lg"; however, I still get an error.
proc_fruits = nlp('''I think green apples are delicious.
While pears have a strange texture to them. The bowls they sit in
are ugly''')
apples, pears, bowls = proc_fruits.sents
fruit = proc_fruits.vocab["fruits"]
print(apples.similarity(fruit))