#!/bin/sh

PATH="/bin:/usr/local/libexec/mecab:/usr/lib/mecab:/usr/local/Cellar/mecab/0.996/libexec/mecab:/sw/lib/mecab/"
export PATH

rm -f sys.dic ../final/*.csv

mecab-dict-index -f utf-8 -t utf-8

mecab-cost-train -c 1.0 corpus model

mecab-dict-gen -o ../final -m model

mecab-dict-index -f utf-8 -t utf-8 -d ../final -o ../final
