How tagger.predict works? #13193
-
I was looking for some way to measure the POS tagging confidence and found this answer: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You can get the raw scores from the tagger's internal model:
The scores for each token correspond to the labels in There's a bit of cython, but the pair of spaCy/spacy/pipeline/tagger.pyx Lines 124 to 172 in 7df328f |
Beta Was this translation helpful? Give feedback.
You can get the raw scores from the tagger's internal model:
The scores for each token correspond to the labels in
nlp.get_pipe("tagger").labels
.There's a bit of cython, but the pair of
predict
/set_annotations
methods should help you understand the internals:spaCy/spacy/pipeline/tagger.pyx
Lines 124 to 172 in 7df328f