class documentation
class UnChunkRule(RegexpChunkRule): (source)
Constructor: UnChunkRule(tag_pattern, descr)
A rule specifying how to remove chunks to a ChunkString, using a matching tag pattern. When applied to a ChunkString, it will find any complete chunk that matches this tag pattern, and un-chunk it.
Method | __init__ |
Construct a new UnChunkRule. |
Method | __repr__ |
Return a string representation of this rule. It has the form: |
Instance Variable | _pattern |
Undocumented |
Inherited from RegexpChunkRule
:
Static Method | fromstring |
Create a RegexpChunkRule from a string description. Currently, the following formats are supported: |
Method | apply |
Apply this rule to the given ChunkString. See the class reference documentation for a description of what it means to apply a rule. |
Method | descr |
Return a short description of the purpose and/or effect of this rule. |
Instance Variable | _descr |
Undocumented |
Instance Variable | _regexp |
Undocumented |
Instance Variable | _repl |
Undocumented |
Construct a new UnChunkRule.
Parameters | |
tag | This rule's tag pattern. When applied to a ChunkString, this rule will find any complete chunk that matches this tag pattern, and un-chunk it. |
descr:str | A short description of the purpose and/or effect of this rule. |