# 頻出文字

import neko_mecab

mapping = neko_mecab.neko_mecab()

dct_words = {}
words = []
count = 0

for value in mapping:
    if not value['surface'] in dct_words:
        dct_words[value['surface']] = 1
    else:
        count = dct_words[value['surface']]
        dct_words[value['surface']] = count+1

for k, v in sorted(dct_words.items(), key=lambda x: -x[1]):
    words.append(str(k) + ": " + str(v))

print(words)

c27f9152fd69c008be14c31c6b259116e96647f2
<mask token>

<mask token>
for value in mapping:
    if not value['surface'] in dct_words:
        dct_words[value['surface']] = 1
    else:
        count = dct_words[value['surface']]
        dct_words[value['surface']] = count + 1
for k, v in sorted(dct_words.items(), key=lambda x: -x[1]):
    words.append(str(k) + ': ' + str(v))
print(words)

<mask token>
mapping = neko_mecab.neko_mecab()
dct_words = {}
words = []
count = 0
for value in mapping:
    if not value['surface'] in dct_words:
        dct_words[value['surface']] = 1
    else:
        count = dct_words[value['surface']]
        dct_words[value['surface']] = count + 1
for k, v in sorted(dct_words.items(), key=lambda x: -x[1]):
    words.append(str(k) + ': ' + str(v))
print(words)

import neko_mecab
mapping = neko_mecab.neko_mecab()
dct_words = {}
words = []
count = 0
for value in mapping:
    if not value['surface'] in dct_words:
        dct_words[value['surface']] = 1
    else:
        count = dct_words[value['surface']]
        dct_words[value['surface']] = count + 1
for k, v in sorted(dct_words.items(), key=lambda x: -x[1]):
    words.append(str(k) + ': ' + str(v))
print(words)

# 頻出文字

import neko_mecab

mapping = neko_mecab.neko_mecab()

dct_words = {}
words = []
count = 0

for value in mapping:
    if not value['surface'] in dct_words:
        dct_words[value['surface']] = 1
    else:
        count = dct_words[value['surface']]
        dct_words[value['surface']] = count+1

for k, v in sorted(dct_words.items(), key=lambda x: -x[1]):
    words.append(str(k) + ": " + str(v))

print(words)
