| Home | Trees | Index | Help |
|
|---|
| Package nltk_lite :: Package contrib :: Module marshalbrill :: Class Brill |
|
object--+ |TagI--+ | Brill
Brill's transformational rule-based tagger. Brill taggers use an initial tagger
(such as tag.Default) to assign an intial tag
sequence to a text; and then apply an ordered list of transformational
rules to correct the tags of individual tokens. These transformation
rules are specified by the BrillRuleI interface.
BrillTrainer or FastBrillTrainer.
| Method Summary | |
|---|---|
| |
Marshals (saves to a plain text file) the tagger model. | |
rules(self)
| |
Assign a tag to each token in tokens, and yield a tagged
token of the form (token, tag) | |
Unmarshals (loads from a plain text file) the tagger model. | |
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
| |
| Method Details |
|---|
__init__(self,
initial_tagger,
rules)
|
marshal(self, filename)Marshals (saves to a plain text file) the tagger model.
|
tag(self, tokens)Assign a tag to each token intokens, and yield a
tagged token of the form (token, tag)
|
unmarshal(self, filename)Unmarshals (loads from a plain text file) the tagger model. This operation will override any previously stored rules.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue Sep 5 09:37:21 2006 | http://epydoc.sf.net |