

def __init__(self, left_tag_pattern, right_tag_pattern, descr):
    "\n        Construct a new ``SplitRule``.\n\n        :type right_tag_pattern: str\n        :param right_tag_pattern: This rule's right tag\n            pattern.  When applied to a ``ChunkString``, this rule will\n            find any chunk containing a substring that matches\n            ``left_tag_pattern`` followed by this pattern.  It will\n            then split the chunk into two new chunks at the point\n            between these two matching patterns.\n        :type left_tag_pattern: str\n        :param left_tag_pattern: This rule's left tag\n            pattern.  When applied to a ``ChunkString``, this rule will\n            find any chunk containing a substring that matches this\n            pattern followed by ``right_tag_pattern``.  It will then\n            split the chunk into two new chunks at the point between\n            these two matching patterns.\n        :type descr: str\n        :param descr: A short description of the purpose and/or effect\n            of this rule.\n        "
    re.compile(tag_pattern2re_pattern(left_tag_pattern))
    re.compile(tag_pattern2re_pattern(right_tag_pattern))
    self._left_tag_pattern = left_tag_pattern
    self._right_tag_pattern = right_tag_pattern
    regexp = re.compile(('(?P<left>%s)(?=%s)' % (tag_pattern2re_pattern(left_tag_pattern), tag_pattern2re_pattern(right_tag_pattern))))
    RegexpChunkRule.__init__(self, left_tag_pattern, '\\g<left>}{', descr)

dataset/ETHPy150Open nltk/nltk/nltk/chunk/regexp.py SplitRule.__init__/VarMisuse@79/481 `regexp`->`left_tag_pattern`