INNER CODE UNIT · Python

Paragraph

wyounas/homer · homer/analyzer.py:119

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('—', ' ')
        self.paragraph = paragraph
        self.tokenized_sentences = nltk.sent_tokenize(paragraph)
        self._sentences = [Sentence(sentence) for sentence in self.tokenized_sentences]


    @property
    def sentences(self):
        return self._sentences

    @property

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…