b4msa.lang_dependency
¶
- class b4msa.lang_dependency.LangDependency(lang='spanish')[source]¶
Defines a set of functions to change text using laguage dependent transformations, e.g., - Negation - Stemming - Stopwords
- Parameters
lang (str) – Language spanish | english | italian | german
- english_negation(text)[source]¶
Standarizes negation sentences markers used: “not, no, never, nor, neither” “any” is only used with negative sentences.
- property neg_stopwords¶
Stop words skip to find a negation
- spanish_negation(text)[source]¶
Standarizes negation sentences, nouns are also considering with the operator “sin” (without) Markers like ninguno, ningún, nadie are considered as another word.
- property stopwords¶
Stop words read from resources directory