PacktPublishing / Mastering-spaCy

Mastering spaCy, published by Packt
MIT License
125 stars 73 forks source link

Chapter 4 [os error "en" model and it takes only two positions] #9

Closed RAravindDS closed 1 year ago

RAravindDS commented 2 years ago

image

This is the error, I have solved this using three things.

  1. instead of using model 'en' we can use the "en_core_web_md" model.
  2. You will get another error like it take only 2 positions but you have given 3. for that just remove the none.
  3. You will get another error like list of dictionary not needed, you can enclose the matcher pattern inside the two dimension array(like nested list)

Here's my code!

image

DuyguA commented 1 year ago

Should be fixed in the new versions, still thanks for the report :wave:

RAravindDS commented 1 year ago

@DuyguA Thank you so much!