예제 #1
0
def main():
    path = 'neko.txt.mecab'
    wdict = hist_words(importmecab(path))
    sortwords = sorted(
                    wdict.items(),
                    key=lambda x: x[1],
                    reverse=True)

    with open('knock36.txt', 'w', encoding='utf-8') as f:
        print(sortwords, file=f)
예제 #2
0
def main():
    path = 'neko.txt.mecab'
    wdict = knock36.hist_words(importmecab(path))
    showhist10(wdict)
예제 #3
0
def main():
    path = 'neko.txt.mecab'
    surfaces = surfaceverb(importmecab(path))
    with open('knock31.txt', 'w', encoding='utf-8') as f:
        print(surfaces, file=f)