| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
ClassifierI
A processing interface for labeling tokens with a single category
label (or class).
Labels are typically strings or integers, but
can be any immutable type. The set of labels that the classifier chooses
from must be fixed and finite.
Subclasses must define:
Subclasses may define:
|
|||
list of (immutable)
|
|
||
| label |
|
||
| ProbDistI |
|
||
list of label
|
|
||
list of ProbDistI
|
|
||
| Deprecated | |||
|---|---|---|---|
|
|||
|
|||
|
|||
|
|
|
Apply self.classify() to each element of
>>> return [self.classify(fs) for fs in featuresets]
|
Apply self.prob_classify() to each element of
>>> return [self.prob_classify(fs) for fs in featuresets]
|
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 11 14:39:44 2011 | http://epydoc.sourceforge.net |