#!/bin/sh

PATH=/bin:/usr/local/libexec/mecab:/usr/lib/mecab:/usr/local/Cellar/mecab/0.996/libexec/mecab:/sw/lib/mecab/
LANG=ja_JP.UTF-8

export PATH LANG

rm -f corpus
cat corpus.*.mc > corpus
rm -f sys.dic ../final_pulleyblank/*.csv

mecab-dict-index -f utf-8 -t utf-8
mecab-cost-train -c 1.0 corpus model
mecab-dict-gen -o ../final_pulleyblank -m model
mecab-dict-index -f utf-8 -t utf-8 -d ../final_pulleyblank -o ../final_pulleyblank

exit 0
