Skip to content
Discussion options

You must be logged in to vote

A spacy token has two attributes that store POS information, the fine-grained tag (tag) and the coarse-grained Universal POS (pos). The tag can be any tag, but the pos is restricted to being a UPOS tag from this tag set: https://universaldependencies.org/u/pos/index.html. (I looked again through the related docs and this should be explained more clearly!)

For custom tags, you want to use tag instead of pos. Trying to use Doc.from_array as a workaround is just kind of masking the underlying problem. As a check, you should be able to set any attribute in the Doc directly that you also want to load with Doc.from_array.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ines
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / tagger Feature: Part-of-speech tagger
2 participants
Converted from issue

This discussion was converted from issue #5417 on December 11, 2020 00:31.