__init__(self,
left_tag_pattern,
right_tag_pattern,
descr)
(Constructor)
| source code
|
Construct a new MergeRule .
- 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 chunk 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 chunk whose
beginning matches right_tag_pattern . It will then
merge those two chunks into a single chunk.
descr (string ) - A short description of the purpose and/or effect of this rule.
- Overrides:
RegexpChunkRule.__init__
|