Adding custom components to existing config file but keep receiving 'Can't find factory' errors #12838
-
I am trying to add custom componets to my pipeline and seem to have followed the steps I have found on the Spacy documnetation but keep getting the same error when I run the command:
I have implemented the correct but keep getting this error:
Things I have tried so far: Only using one --code argument at a time, config.cfg file ( produced by an existing model ):
Matcher.py code:
sentence.py code:
I have looked at other discussion and stackoverflow posts and I seem to have followed their steps correctly. Any help is much appreciated! Thank you! Spacy v3.6 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
After speaking with some more experienced developers, I was told to use: sentence.py:
instead of
and
instead of
So far this seems to have worked and passed the config debug command and has successfully trained. |
Beta Was this translation helpful? Give feedback.
-
Hi, I want to ask if I want to add just one component Is @Language.component and @Language.factory or just adding @Language.component is enough? |
Beta Was this translation helpful? Give feedback.
After speaking with some more experienced developers, I was told to use:
sentence.py:
instead of
and
for matcher.py
instead of
So far this seems to have worked and passed the config debug command and has successfully trained.
I hope this is useful in the future for someone else.