From 3557b7a667aed39c1aa2454d6b722259f4a9fd1c Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko <tomo.git@chise.org> Date: Fri, 12 Oct 2012 08:50:36 +0900 Subject: [PATCH] - 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. --- seed/system-eval.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/seed/system-eval.sh b/seed/system-eval.sh index 35d19092e..08d06b1c2 100755 --- a/seed/system-eval.sh +++ b/seed/system-eval.sh @@ -1,15 +1,16 @@ #!/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 -- GitLab