Skip to content
Discussion options

You must be logged in to vote

If spacy init labels doesn't find labels, it usually means that something is wrong with the training data, or possibly with how initialize reads the labels from the training data.

In get_loss, you need to use the alignment in the Example to allow for differences between the reference tokenization and the predicted tokenization.

To take advantage of the default serialization in TrainablePipe, you want to store the labels in self.cfg as in Tagger. Otherwise the labels aren't saved when you use to_disk or to_bytes.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@thatbudakguy
Comment options

@adrianeboyd
Comment options

@thatbudakguy
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 training Training and updating models
2 participants