def _get_stopwords():
    with open(get_root_path() + "/dskc/visualization/graphs/types/word_cloud/stopwords.txt", encoding="utf-8") as f:
        stopwords = []
        for word in f.readlines():
            stopwords.append(word.strip())

        # adding to the file his words doesnt solve the problem, IDK
        stopwords.extend(["a", "é"])

        return stopwords
Ejemplo n.º 2
0
def end_banner():
    with open("{}/dskc/visualization/terminal/banner_end.txt".format(
            get_root_path())) as f:
        print(f.read())
def _get_lexicon():
    path = get_root_path() + "/dskc/clean/lexicons/en_pt_lex.csv"  # todo json
    lexicon = pd.read_csv(path)
    return lexicon