__init__(self,
left_tag_pattern,
right_tag_pattern,
descr)
(Constructor)
| source code
|
Construct a new SplitRule .
- Parameters:
right_tag_pattern (string ) - This rule's right tag pattern. When applied to a
ChunkString , this rule will find any chunk
containing a substring that matches left_tag_pattern
followed by this pattern. It will then split the chunk into two
new chunks at the point between these two matching patterns.
left_tag_pattern (string ) - This rule's left tag pattern. When applied to a
ChunkString , this rule will find any chunk
containing a substring that matches this pattern followed by
right_tag_pattern . It will then split the chunk
into two new chunks at the point between these two matching
patterns.
descr (string ) - A short description of the purpose and/or effect of this rule.
- Overrides:
RegexpChunkRule.__init__
|