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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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))
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply