JST_LOGO.JPG NICT_LOGO.JPG KYOTO-U_LOGO.JPG

WAT

The Workshop on Asian Translation
Automatic Evaluation Procedures
for Korean Translation Results

[AUTOMATIC EVALUATION PROCEDURES TOP] | [SETUP] | [SEGMENTATION] | [EVALUATION]

Setup

Here, ${TASK} representes the source and target language pair, and "ja-ko" can be applied.
We assume that there are reference files (${TASK}.txt) in tests.org/, translation result files (${TASK}.txt) in results.org/ and all tools in ${path}.
TASK=ja-ko
SCRIPT=${path}/script.segmentation.distribution
MOSES_SCRIPT=${path}/mosesdecoder-RELEASE-2.1.1/scripts
RIBES=${path}/RIBES-1.02.4
mkdir tests.tok
mkdir results.tok
Back to top

Segmentation

  • MeCab-ko
  • for file in tests results; do
      cat ${file}.org/${TASK}.txt | \
       perl -Mencoding=utf8 -pe 's/(.)[[0-9.]+]$/${1}/;' | \
       perl ${SCRIPT}/h2z-utf8-without-space.pl | \
       mecab -O wakati | |
       perl -Mencoding=utf8 -pe 'while(s/([0-9]) ([0-9])/$1$2/g){} s/([0-9]) (.) ([0-9])/$1$2$3/g; while(s/([A-Z]) ([A-Za-z])/$1$2/g){} while(s/([a-z]) ([a-z])/$1$2/g){} s/ $//;' \
       > ${file}.tok/${TASK}.mecab.txt
    done

    Back to top

    Evaluation

  • BLEU
  • for segmenter in mecab; do
      perl ${MOSES_SCRIPT}/generic/multi-bleu.perl tests.tok/${TASK}.${segmenter}.txt < results.tok/${TASK}.${segmenter}.txt
    done

  • RIBES
  • for segmenter in mecab; do
      python3 ${RIBES}/RIBES.py -c -r tests.tok/${TASK}.${segmenter}.txt results.tok/${TASK}.${segmenter}.txt
    done

    Back to top

    JST (Japan Science and Technology Agency)
    NICT (National Institute of Information and Communications Technology)
    Kyoto University
    Last Modified: 2015-03-20