Package nltk :: Package tag :: Module sequential :: Class ClassifierBasedPOSTagger
[hide private]
[frames] | no frames]

type ClassifierBasedPOSTagger

source code

         object --+            
                  |            
        api.TaggerI --+        
                      |        
SequentialBackoffTagger --+    
                          |    
         object --+       |    
                  |       |    
        api.TaggerI --+   |    
                      |   |    
  api.FeaturesetTaggerI --+    
                          |    
      ClassifierBasedTagger --+
                              |
                             ClassifierBasedPOSTagger

A classifier based part of speech tagger.

Instance Methods [hide private]
 
feature_detector(self, tokens, index, history)
Return the feature detector that this tagger uses to generate featuresets for its classifier.
source code

Inherited from ClassifierBasedTagger: __init__, __repr__, choose_tag, classifier

Inherited from ClassifierBasedTagger (private): _train

Inherited from SequentialBackoffTagger: tag, tag_one

Inherited from SequentialBackoffTagger (private): _get_backoff

Inherited from api.TaggerI: batch_tag, evaluate

Inherited from api.TaggerI (private): _check_params

Instance Variables [hide private]

Inherited from ClassifierBasedTagger (private): _classifier, _cutoff_prob

Inherited from SequentialBackoffTagger (private): _taggers

Properties [hide private]

Inherited from SequentialBackoffTagger: backoff

Method Details [hide private]

feature_detector(self, tokens, index, history)

source code 

Return the feature detector that this tagger uses to generate featuresets for its classifier. The feature detector is a function with the signature:

 feature_detector(tokens, index, history) -> featureset
Overrides: ClassifierBasedTagger.feature_detector
(inherited documentation)