|
__init__(self,
rule_class,
*boundaries)
Construct a template for generating proximate token brill rules. |
source code
|
|
list of BrillRule
|
applicable_rules(self,
tokens,
index,
correct_tag)
Return a list of the transformational rules that would correct the
i th subtoken's tag in the given token. |
source code
|
|
|
_applicable_conditions(self,
tokens,
index,
start,
end)
Returns:
A set of all conditions for proximate token rules that are applicable
to tokens[index] , given boundaries of (start,
end) . |
source code
|
|
Set
|
get_neighborhood(self,
tokens,
index)
Returns the set of indices i such that
applicable_rules(token, i, ...) depends on the value of
the index th subtoken of token . |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|