Beispiel #1
0
 def preprocess(self, text: str) -> List[str]:
     text = txt.expand_contractions(
            txt.strip_additions(
            txt.resurrect_expletives(text)))
     lemmas = tkn.lemmatize(
              tkn.drop_stopwords(
              tkn.tokenize(text)))
     return lemmas