Esempio n. 1
0
def get_freqency():
    neko = load_neko()
    counter_words = Counter([])
    for sentence in neko:
        morphs = pd.DataFrame(sentence)
        counter_words = counter_words + Counter(morphs['base'].tolist())
    return counter_words
Esempio n. 2
0
from q30 import load_neko
import pandas as pd
from pprint import pprint

neko = load_neko()
varbs = set()
for sentence in neko:
    morphos = pd.DataFrame(sentence)
    varbs.update(morphos[morphos['pos'] == '動詞']['base'].tolist())
pprint(varbs)