| 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 |
|||
| Deprecated | |||
|---|---|---|---|
|
Inherited from |
|||
|
|||
|
_feature_detector The feature detector function, used to generate a featureset for each token: |
|||
|
_cutoff_prob Cutoff probability for tagging -- if the probability of the most likely tag is less than this, then use backoff. |
|||
|
_classifier The classifier used to choose a tag for each token. |
|||
|
Inherited from |
|||
|
|||
|
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
|
repr(x)
|
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() |
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() |
|
|||
_feature_detectorThe feature detector function, used to generate a featureset for each token: feature_detector(tokens, index, history) -> featureset |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:58 2008 | http://epydoc.sourceforge.net |