Skip to content
Discussion options

You must be logged in to vote

I think you might have forgotten to return the callback in the definition?

@registry.callbacks("entity_linker_overwrite_false")
def make_entity_linker_overwrite_false():
    def entity_linker_overwrite_false(nlp):
        if nlp.has_pipe("entity_linker"):
            nlp.get_pipe("entity_linker").cfg["overwrite"] = False

    return entity_linker_overwrite_false

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kinghuang
Comment options

Answer selected by kinghuang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat / nel Feature: Named Entity linking
2 participants