

def apply(self, chunkstr):
    '\n        Apply this rule to the given ``ChunkString``.  See the\n        class reference documentation for a description of what it\n        means to apply a rule.\n\n        :type chunkstr: ChunkString\n        :param chunkstr: The chunkstring to which this rule is applied.\n        :rtype: None\n        :raise ValueError: If this transformation generated an\n            invalid chunkstring.\n        '
    chunkstr.xform(self._regexp, self._repl)

dataset/ETHPy150Open nltk/nltk/nltk/chunk/regexp.py RegexpChunkRule.apply/original