

def __str__(self):
    '\n        :return: a verbose string representation of this ``RegexpChunkParser``.\n        :rtype: str\n        '
    s = ('RegexpChunkParser with %d rules:\n' % len(self._rules))
    margin = 0
    for rule in self._rules:
        margin = max(margin, len(rule.descr()))
    if (margin < 35):
        format = (('    %' + repr((- (margin + 3)))) + 's%s\n')
    else:
        format = '    %s\n      %s\n'
    for rule in self._rules:
        s += (format % (rule.descr(), unicode_repr(rule)))
    return s[:(- 1)]

dataset/ETHPy150Open nltk/nltk/nltk/chunk/regexp.py RegexpChunkParser.__str__/original