Exemple #1
0
def main():
    fin = open("neko.txt.mecab", "r")
    morph_mapping_lists = senbei.make_morph_mapping_lists(fin)
    fin.close()
    word2freq = senbei2.make_word2freq(morph_mapping_lists)
    freq2type = make_freq2type(word2freq)
    make_histgram(freq2type)
Exemple #2
0
def main():
    fin = open("neko.txt.mecab", "r")
    morph_mapping_lists = senbei.make_morph_mapping_lists(fin)
    fin.close()
    word2freq = senbei2.make_word2freq(morph_mapping_lists)
    make_topten_graph(word2freq)