# -*- coding: utf-8 -*-
import q41, q42

NOUN = '名詞'
VERB = '動詞'

if __name__ == '__main__':
    chunks = q41.make_chunks('neko.txt.cabocha')
    chunkdict = q42.make_chunkdict(chunks[6])
    combidict = q42.make_combidict(chunkdict)
    for k, v in sorted(combidict.items()):
        if NOUN in v['dst_pos'].split(',') and VERB in v['src_pos'].split(','):
            print v['dst_sen'].replace(' ','') + '(' + v['dst_pos'] + ')' + '\t' + \
                  v['src_sen'].replace(' ','') + '(' + v['src_pos'] + ')'
