Can't add custom component using nlp.add_pipe()
#11044
-
So i'm using the spacy project for relationship extraction. i've figured out how to train the model with my own training data but now i want to add the trained component using
error:
what i think is happening is that i've just imported the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry this isn't very clear. What's happening is that for built-in spaCy components, there's a default config that will be used as a fallback for values, but the rel component doesn't have a default config, so you have to provide everything. Here's one way to do that - I used the sample config as a base and set this up.
Some changes I had to make:
|
Beta Was this translation helpful? Give feedback.
Sorry this isn't very clear. What's happening is that for built-in spaCy components, there's a default config that will be used as a fallback for values, but the rel component doesn't have a default config, so you have to provide everything. Here's one way to do that - I used the sample config as a base and set this up.