Skip to content
Discussion options

You must be logged in to vote

I think there are a few different issues going on here:

[training]
frozen_components = ["tagger","parser"]

[components.tagger]
source = "en_core_web_sm"
replace_listeners = ["model.tok2vec"]

[components.parser]
source = "en_core_web_sm"
replace_listeners = ["model.tok2vec"]

[components.tok2vec]
factory = "tok2vec"

Freezing the sourced tagger & parser should indeed work like this, and you are right to try and disconnect the tok2vec layer with the replace_listeners function. However, it's not entirely working like you think. The tagger and parser just know that they're listening to an upstream tok2vec component, and by creating a new one with factory = "tok2vec", you're basically still …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@badri-thinker
Comment options

@polm
Comment options

Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage feat / ner Feature: Named Entity Recognizer feat / config Feature: Training config
4 participants
Converted from issue

This discussion was converted from issue #7135 on February 21, 2021 20:01.