Skip to content
Discussion options

You must be logged in to vote

This is a relatively cryptic error that you can safely ignore or filter if you're just using displacy. I think we should consider filtering it out ourselves with displacy, since it's really confusing.

What's going on underneath in case you're interested: spacy-stanza add user hooks for token vectors if the stanza model includes pretrained word embeddings. As an internal processing step, displacy serializes the doc with doc.to_bytes, which is what leads to this warning, since it can't serialize the user hooks.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by thiippal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / visualizers Feature: Built-in displaCy and other visualizers
2 participants