Skip to content

Can I update token's POS tag? #5743

Discussion options

You must be logged in to vote

token.pos_ is restricted to UPOS tags, so you could do NOUN but not NN. If you want to use any arbitrary tag like NN, use the attribute token.tag_ instead.

Replies: 3 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
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 / doc Feature: Doc, Span and Token objects
2 participants
Converted from issue

This discussion was converted from issue #5743 on December 11, 2020 00:08.