nltk.tag.DefaultTagger.tag_one¶
-
DefaultTagger.
tag_one
(tokens, index, history)¶ Determine an appropriate tag for the specified token, and return that tag. If this tagger is unable to determine a tag for the specified token, then its backoff tagger is consulted.
Return type: str
Parameters: - tokens (list) – The list of words that are being tagged.
- index (int) – The index of the word whose tag should be returned.
- history (list(str)) – A list of the tags for all words before index.