replaCy extensions can be added... but not removed or renamed. We also don't constrain component names to be unique. So to match the spaCy API (and just have reasonable functionality), we need:
see the spaCy docs.
the context manager would look like:
replaCy = ReplaceMatcher(stuff)
with replaCy.disable_pipes("scorer"):
spans = replaCy("some text")
replaCy extensions can be added... but not removed or renamed. We also don't constrain component names to be unique. So to match the spaCy API (and just have reasonable functionality), we need:
remove_pipemethodrename_pipemethodreplace_pipemethoddisable=["any built in component"]passed as kwarg to disable those components for that instanceReplaceMatcher.__call__, allowdisable=["any built in component"]passed as kwarg to disable those components for that invocationdisable_pipescontext managersee the spaCy docs.
the context manager would look like: