

def __init__(self, chunk_struct, debug_level=1):
    '\n        Construct a new ``ChunkString`` that encodes the chunking of\n        the text ``tagged_tokens``.\n\n        :type chunk_struct: Tree\n        :param chunk_struct: The chunk structure to be further chunked.\n        :type debug_level: int\n        :param debug_level: The level of debugging which should be\n            applied to transformations on the ``ChunkString``.  The\n            valid levels are:\n                - 0: no checks\n                - 1: full check on to_chunkstruct\n                - 2: full check on to_chunkstruct and cursory check after\n                   each transformation.\n                - 3: full check on to_chunkstruct and full check after\n                   each transformation.\n            We recommend you use at least level 1.  You should\n            probably use level 3 if you use any non-standard\n            subclasses of ``RegexpChunkRule``.\n        '
    self._root_label = chunk_struct.label()
    self._pieces = chunk_struct[:]
    tags = [chunk_struct._tag(tok) for tok in self._pieces]
    self._str = (('<' + '><'.join(tags)) + '>')
    self._debug = debug_level

dataset/ETHPy150Open nltk/nltk/nltk/chunk/regexp.py ChunkString.__init__/VarMisuse@40/352 `self`->`chunk_struct`