INNER CODE UNIT · Python

is_vague_word

wyounas/homer · homer/analyzer.py:55

    def is_vague_word(self):
        return self.word in self.vague_words

    def __repr__(self):
        return 'Word(%r)' % self.word

    def __str__(self):
        return self.word


@lru_cache(maxsize=256)
def get_word(word):
    return Word(word)


class Sentence(object):
    """
    An abstraction that represents a sentence and gives various stats.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…