Spacy 3.0 - nlp.add_pipe(ruler) failes #6265
-
Hi, we are trying to use the EntityRuler with the new spacy nightly version. The Code word using the old spacy version but fails at the nlp.add_pipe(ruler) step using spacy nightly 3.0. The Code (just the example from the spacy website): import spacy
from spacy.pipeline import EntityRuler
nlp = spacy.load("en_core_web_trf")
ruler = EntityRuler(nlp)
ruler.add_patterns([{"label": "ORG", "pattern": "Apple"}])
nlp.add_pipe(ruler) The same Code runs with the Old Spacy Version (Using the Old Language Set) but fails with following error using spacy nightly ValueError: [E966]
My Environmentcopy-paste the result here.-->
Name Version Build Channel_libgcc_mutex 0.1 main |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 16 replies
-
Yes this is one of the workflows that's changed in v3. We've tried to make the error message as helpful as possible. If you have a look at the error you pasted, is it clear to you what needs to be done? I thought the wording there was quite good, but I understand it's always hard to guess how things come across to users. You can also find this covered in the migration guide: https://nightly.spacy.io/usage/v3#migrating-add-pipe |
Beta Was this translation helpful? Give feedback.
-
Maybe we could provide the string name in the error message for the built-in components in case two? I think a lot of the names aren't obvious from the class names... |
Beta Was this translation helpful? Give feedback.
-
I also encountered the same problem when using spacy 3.0. Have you found an effective solution now? |
Beta Was this translation helpful? Give feedback.
-
It still doesnt work for me, It shows the same error
|
Beta Was this translation helpful? Give feedback.
-
This is also one of the errors when you bring language factory my component. Still thinking how to resolve this but no valid sources so far |
Beta Was this translation helpful? Give feedback.
Yes this is one of the workflows that's changed in v3. We've tried to make the error message as helpful as possible. If you have a look at the error you pasted, is it clear to you what needs to be done? I thought the wording there was quite good, but I understand it's always hard to guess how things come across to users. You can also find this covered in the migration guide: https://nightly.spacy.io/usage/v3#migrating-add-pipe