Skip to content
Discussion options

You must be logged in to vote

I would highly recommend switching to a command-line approach to train your models, and using the spacy train command, because that command takes care of a lot of additional details that you'll have to code for manually if you want to call nlp.update directly.

That said, the error message in your original post refers to a tok2vec component, not a transformer component. You must have a Tok2VecListener in your pipeline that requires the annotations of a tok2vec component that has not been added to annotates.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@parzival1l
Comment options

@svlandeg
Comment options

Answer selected by svlandeg
Comment options

You must be logged in to vote
2 replies
@svlandeg
Comment options

@Shreya-Goswami
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage General spaCy usage training Training and updating models feat / cli Feature: Command-line interface feat / tok2vec Feature: Token-to-vector layer and pretraining
4 participants
Converted from issue

This discussion was converted from issue #12821 on July 13, 2023 15:30.