def __lt__(self, other):
    if (not isinstance(other, Token)):
        return NotImplemented
    return ((self.start, self.end, self.text, self.lemma) < (other.start, other.end, other.text, other.lemma))
def __lt__(self, other):
    if (not isinstance(other, Token)):
        return NotImplemented
    return ((self.start, self.end, self.text, self.lemma) < (other.start, other.end, other.text, other.lemma))