| 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
|
|
||
|
Inherited from |
|||
| Deprecated | |||
|---|---|---|---|
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
|
|
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]
|
Deprecated: Use .batch_prob_classify() instead. |
Deprecated: Use .prob_classify() instead. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:52 2008 | http://epydoc.sourceforge.net |