⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eval.sh

📁 about sound recognition.i want to downlod
💻 SH
字号:
#!/bin/sh## $1: Julius log file# $2: reference file# output summary in stdout#perl=/usr/bin/perlalign_opt='-u morpheme -c -f kanji'###################dir=`dirname $0`rdir=`dirname $1`/result.`basename $1`fulldir=`${dir}/mkfullpath.pl ${dir}`if ! test -d ${rdir}; then  mkdir ${rdir}fi# output specified filenamesecho log: `${dir}/mkfullpath.pl $1`echo ref: $2echo '------------------------------------------------------------------------------'echo '           Snt      Corr      Acc      Sub      Del      Ins      Err    S.Err'echo '------------------------------------------------------------------------------'# compute accuracy and output (final, 1st pass)echo 'final (2pass)'nkf -e $1 | ${perl} ${dir}/mkhyp.pl -p 2 > ${rdir}/hypo2${perl} ${dir}/align.pl ${align_opt} -r $2 ${rdir}/hypo2 > ${rdir}/align2(cd ${rdir}; ${fulldir}/score.pl align2)tail -2 ${rdir}/align2.scr/align2.sysecho 1st passnkf -e $1 | ${perl} ${dir}/mkhyp.pl -p 1 > ${rdir}/hypo1${perl} ${dir}/align.pl ${align_opt} -r $2 ${rdir}/hypo1 > ${rdir}/align1(cd ${rdir}; ${fulldir}/score.pl align1)tail -2 ${rdir}/align1.scr/align1.sysecho evaluation results saved to \"${rdir}/\"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -