INNER CODE UNIT · Python
__gt__
wyounas/homer · homer/analyzer.py:106
def __gt__(self, other):
return len(self) > len(other)
def __eq__(self, other):
return len(self) == len(other)
def __repr__(self):
return 'Sentence(%r)' % self.sentence
def __str__(self):
return self.sentence
class Paragraph(object):
"""
Represents a paragraph. Finds compulsive hedgers, intensifiers, vague words, readability scores of a paragraph and
various other stats.
"""