Enable override of existing custom pipe #13355
-
The problem/proposal. How to reproduce the behaviour
Then later modify the custom_component method to return
I thought there might be an argument like
Or perhaps there is an OOP way to rewrite the component Your Environment
I see explosion/spacy-course#21 which handles removal of the pipeline but nothing about editing/modifying in place |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! You can use
|
Beta Was this translation helpful? Give feedback.
Hi!
You can use
nlp.replace_pipe
for this purpose: https://spacy.io/api/language#replace_pipe