Component 'relation_extractor' could not be run. Did you forget to call initialize()?
#12992
-
|
Hello, I am trying to implement a custom pipeline component. I have cloned the project template 'rel_component' found here. I have added this component using the 'add_pipe' command as follows: This works fine and I get the following output: But when I input the text: I get the following error: Have I missed any steps in this implementation? Please help. Package versions: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
When you are adding the new pipe to the existing pipeline: the model of the where An unrelated tip about your configuration: This will use the existing tok2vec pipe of the |
Beta Was this translation helpful? Give feedback.
When you are adding the new pipe to the existing pipeline:
the model of the
relation_extractorpipe has not been initialized yet. So, you need to do something along the lines of:where
examplesis a list of training examples (List[Example]). Also see: https://spacy.io/api/pipe#initializeAn unrelated tip about your configuration: