How to run single component on Doc? #12065
-
I save my Doc to file like this
and then I want to continue where I left off but I don't want to run the whole pipeline again, but only run my custom component on the deserialized Doc object from disk, where should I start to do it spaCy way eg without importing my custom component implementation function but calling only spaCy APIs if possible ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, You can use
You can also disable or exclude components from a pipeline when using
|
Beta Was this translation helpful? Give feedback.
Hello,
You can use
nlp.get_pipe
(docs) do get individual components from a spaCy pipeline and use them to processDoc
objects.You can also disable or exclude components from a pipeline when using
spacy.load()
(docs).