def __repr__(self):
        typestr = (' type=%s,' % unicode_repr(self.type)
                   if self.type != self.tok else '')

        propvals = ', '.join(
            '%s=%s' % (p, unicode_repr(getattr(self, p)))
            for p in self._properties
            if getattr(self, p)
        )

        return '%s(%s,%s %s)' % (self.__class__.__name__,
            unicode_repr(self.tok), typestr, propvals)
A string representation of the token that can reproduce it
dataset/ETHPy150Open nltk/nltk/nltk/tokenize/punkt.py/PunktToken.__repr__