nltk.ClassifierBasedPOSTagger
¶
-
class
nltk.
ClassifierBasedPOSTagger
(feature_detector=None, train=None, classifier_builder=<bound method type.train of <class 'nltk.classify.naivebayes.NaiveBayesClassifier'>>, classifier=None, backoff=None, cutoff_prob=None, verbose=False)[source]¶ A classifier based part of speech tagger.
Methods¶
__init__ ([feature_detector, train, ...]) |
|
choose_tag (tokens, index, history) |
|
classifier () |
Return the classifier that this tagger uses to choose a tag for each word in a sentence. |
evaluate (gold) |
Score the accuracy of the tagger against the gold standard. |
feature_detector (tokens, index, history) |
|
tag (tokens) |
|
tag_one (tokens, index, history) |
Determine an appropriate tag for the specified token, and return that tag. |
tag_sents (sentences) |
Apply self.tag() to each element of sentences. |
unicode_repr () |