Skip to content
Discussion options

You must be logged in to vote

Sorry for the late response to this.

It sounds like you want to change the code for your component and re-add it in the same process. The components are not really designed to be used that way - even if you are debugging, the expectation is that you'll stop the process and start a new process as you redefine the component. This is why there is no registry.remove function.

Under the hood the registry is just using a dictionary with some extra state management on top, so if you want to dig into the internals there's probably a way to unset a key, but I really wouldn't recommend it.

If you have a compelling use case for this we could think about adding it as a feature, but if you're just dev…

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Guillermogsjc
Comment options

@Guillermogsjc
Comment options

@polm
Comment options

@Guillermogsjc
Comment options

@polm
Comment options

Answer selected by polm
Comment options

You must be logged in to vote
6 replies
@cuiqui
Comment options

@polm
Comment options

@cuiqui
Comment options

@cuiqui
Comment options

@polm
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat / pipeline Feature: Processing pipeline and components v3.0 Related to v3.0
6 participants
Converted from issue

This discussion was converted from issue #7311 on March 06, 2021 00:49.