refactor: 脚本及配置文件命名统一用 _ 分隔
将 .sh/.bat 脚本与 .js/.plist/.Dockerfile 等文件中以 - 分隔的文件名 改为 _ 分隔,dcloud-renew 目录改为 dcloud、script_nuance 目录改为 nuance,并同步更新脚本内部引用与 README 路径。 Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
This commit is contained in:
32
nuance/tools/summarize_accuracy.csh
Normal file
32
nuance/tools/summarize_accuracy.csh
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/bin/csh
|
||||
|
||||
# Example: ~/bin/tools/summaryize_accuracy.csh ~/OSR_accuracy/en.sg/results/20060418_osr309 ~/mysum309
|
||||
|
||||
if ("$1" == '') then
|
||||
echo "Where is the evaluation results directory?"
|
||||
echo -n "Please enter an absolute directory: "
|
||||
set resdir=$<
|
||||
else
|
||||
set resdir=$1
|
||||
endif
|
||||
|
||||
# You can enter a path with file name prefix,
|
||||
# or just enter and the $resdir will be used by default.
|
||||
if ("$2" == '') then
|
||||
echo "Where to save summary files?"
|
||||
echo -n "Please enter a absolute path with summary file prefix: "
|
||||
set summary=$<
|
||||
if ("$summary" == '') then
|
||||
set summary=$resdir/summary
|
||||
endif
|
||||
else
|
||||
set summary=$2
|
||||
endif
|
||||
|
||||
# overall summary
|
||||
cd /users/llu/scratch/OSR_accuracy/en.sg; perl ../summarize_proton.pl -normalizeCpu -printinvocab -useGroup proton -meanByWords -meanByTestset -geomMean test $resdir >! $summary.sum; echo Generated $summary.sum
|
||||
|
||||
# wer summary
|
||||
cd /users/llu/scratch/OSR_accuracy/en.sg; perl ../proton_wer.pl -normalizeCpu -printinvocab -useGroup proton -meanByWords -geomMean test $resdir >! $summary.wer; echo Generated $summary.wer
|
||||
|
||||
perl ~/bin/tools/convert_summary_for_excel.pl $summary.sum; echo Generated $summary.sum.excel
|
||||
Reference in New Issue
Block a user