__init__(self,
left_tag_pattern,
right_tag_pattern,
descr)
(Constructor)
| source code
|
Construct a new ExpandRightRule .
- Parameters:
right_tag_pattern (string ) - This rule's right tag pattern. When applied to a
ChunkString , this rule will find any chunk whose end
matches left_tag_pattern , and immediately followed
by a chink whose beginning matches this pattern. It will then
merge those two chunks into a single chunk.
left_tag_pattern (string ) - This rule's left tag pattern. When applied to a
ChunkString , this rule will find any chunk whose end
matches this pattern, and immediately followed by a chink whose
beginning matches right_tag_pattern . It will then
expand the chunk to incorporate the new material on the right.
descr (string ) - A short description of the purpose and/or effect of this rule.
- Overrides:
RegexpChunkRule.__init__
|