| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
api.TaggerI --+
|
SequentialBackoffTagger --+
|
object --+ |
| |
api.TaggerI --+ |
| |
api.FeaturesetTaggerI --+
|
ClassifierBasedTagger
A sequential tagger that uses a classifier to choose the tag for each token in a sentence. The featureset input for the classifier is generated by a feature detector function:
feature_detector(tokens, index, history) -> featureset
Where tokens is the list of unlabeled tokens in the
sentence; index is the index of the token for which feature
detection should be performed; and history is list of the
tags for all tokens before index.
|
|||
|
|||
|
|||
|
|||
str
|
|
||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
_classifier The classifier used to choose a tag for each token. |
|||
|
_cutoff_prob Cutoff probability for tagging -- if the probability of the most likely tag is less than this, then use backoff. |
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Construct a new classifier-based sequential tagger.
|
|
Decide which tag should be used for the specified token, and return
that tag. If this tagger is unable to determine a tag for the specified
token, return
|
Return the classifier that this tagger uses to choose a tag for each word in a sentence. The input for this classifier is generated using this tagger's feature detector. See Also: feature_detector() |
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 See Also: classifier() |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sun Sep 20 21:27:47 2009 | http://epydoc.sourceforge.net |