INNER CODE UNIT · Python
__eq__
wyounas/homer · homer/analyzer.py:109
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.
"""
def __init__(self, paragraph):
paragraph = paragraph.replace('—', ' ')