INNER CODE UNIT · Python
get_intensifiers
wyounas/homer · homer/analyzer.py:94
def get_intensifiers(self):
return (word for word in self.words if word.is_intensifier())
def get_vague_words(self):
return (word for word in self.words if word.is_vague_word())
def __len__(self):
return len(self.words)
def __lt__(self, other):
return len(self) < len(other)
def __gt__(self, other):
return len(self) > len(other)
def __eq__(self, other):
return len(self) == len(other)