コード例 #1
0
ファイル: kn39.py プロジェクト: shohei46pa/100knock2015
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)
コード例 #2
0
ファイル: kn37.py プロジェクト: shohei46pa/100knock2015
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)