Skip to content
Snippets Groups Projects
Commit 3557b7a6 authored by MORIOKA Tomohiko's avatar MORIOKA Tomohiko
Browse files

- Use corpus.*.mc instead of corpus.*.txt.

(PATH): Add /usr/local/Cellar/mecab/0.994/libexec/mecab.
(CORPUS_LIST): Delete jts-wa and jts-JP temporary.
parent 36667b33
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
PATH="/usr/local/bin:/usr/local/libexec/mecab:/bin:/usr/lib/mecab"
PATH="/usr/local/bin:/usr/local/libexec/mecab:/bin:/usr/lib/mecab:/usr/local/Cellar/mecab/0.994/libexec/mecab"
export PATH
export LANG=ja_JP.UTF-8
CORPUS_LIST="misc kanjikai ryomou jts-wa jts-JP"
#CORPUS_LIST="misc kanjikai ryomou jts-wa jts-JP"
CORPUS_LIST="misc kanjikai ryomou"
for i in $CORPUS_LIST
do
mecab-test-gen < "corpus.$i.txt" > "test.$i"
mecab-test-gen < "corpus.$i.mc" > "test.$i"
done
#cat corpus \
......@@ -21,15 +22,15 @@ echo 'mecab-system-eval -l "0 1 2 3 4 5 6 7"' > system-eval.results
for l in $CORPUS_LIST
do
cat corpus.$l.txt > corpus
cat corpus.$l.mc > corpus
./mk-final.sh
for target in $CORPUS_LIST
do
mecab -d ../final/ < "test.$target" > "test.$target.$l.result"
echo '' >> system-eval.results
echo "test.$target (corpus.$l.txt):" >> system-eval.results
echo "test.$target (corpus.$l.mc):" >> system-eval.results
mecab-system-eval -l "0 1 2 3 4 5 6 7" \
"test.$target.$l.result" "corpus.$target.txt" \
"test.$target.$l.result" "corpus.$target.mc" \
>> system-eval.results
done
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment