

def __init__(self, tag_pattern, descr):
    "\n        Construct a new ``ChinkRule``.\n\n        :type tag_pattern: str\n        :param tag_pattern: This rule's tag pattern.  When\n            applied to a ``ChunkString``, this rule will\n            find any substring that matches this tag pattern and that\n            is contained in a chunk, and remove it from that chunk,\n            thus creating two new chunks.\n        :type descr: str\n        :param descr: A short description of the purpose and/or effect\n            of this rule.\n        "
    self._pattern = tag_pattern
    regexp = re.compile(('(?P<chink>%s)%s' % (tag_pattern2re_pattern(tag_pattern), ChunkString.IN_CHUNK_PATTERN)))
    RegexpChunkRule.__init__(self, tag_pattern, '}\\g<chink>{', descr)

dataset/ETHPy150Open nltk/nltk/nltk/chunk/regexp.py ChinkRule.__init__/VarMisuse@50/255 `regexp`->`tag_pattern`