| Home | Trees | Index | Help |
|
|---|
| Package nltk_lite :: Package contrib :: Module marshalbrill :: Class BrillTemplateI |
|
object --+
|
BrillTemplateI
ProximateTokensTemplate,
SymmetricProximateTokensTemplateBrillTemplateI is used by
Brill training algorithms to generate candidate rules.
| Method Summary | |
|---|---|
__init__(self)
| |
list of BrillRuleI
|
Return a list of the transformational rules that would correct the ith subtoken's tag in the given token. |
Set
|
Returns the set of indices i such that
applicable_rules(token, index, ...) depends on the value of
the ith subtoken of token. |
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
| |
| Method Details |
|---|
applicable_rules(self, tokens, i, correctTag)Return a list of the transformational rules that would correct the
ith subtoken already has the correct tag (i.e.,
if tagged_tokens[i][1] == correctTag), then
applicable_rules should return the empty list.
|
get_neighborhood(self, token, index)Returns the set of indices
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue Sep 5 09:37:21 2006 | http://epydoc.sf.net |