Home | Trees | Indices | Help |
|
---|
|
object --+ | yaml.YAMLObject --+ | BrillRuleI
An interface for tag transformations on a tagged corpus, as performed by brill taggers. Each transformation finds all tokens in the corpus that are tagged with a specific original tag and satisfy a specific condition, and replaces their tags with a replacement tag. For any given transformation, the original tag, replacement tag, and condition are fixed. Conditions may depend on the token under consideration, as well as any other tokens in the corpus.
Brill rules must be comparable and hashable.
|
|||
Inherited from |
|
|||
list of int
|
|
||
int
|
|
||
Boolean |
|
||
any |
|
||
any |
|
||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
|
Apply this rule everywhere it applies in the corpus. I.e., for each token in the corpus that is tagged with this rule's original tag, and that satisfies this rule's condition, set its tag to be this rule's replacement tag.
|
Apply this rule at every position in
|
|
|
|
hash(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed May 16 22:47:31 2007 | http://epydoc.sourceforge.net |