Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions egs/wsj/s5/steps/scoring/score_kaldi_cer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ echo "$0 $@" # Print the command line for logging
. parse_options.sh || exit 1;

if [ $# -ne 3 ]; then
echo "Usage: local/score.sh [--cmd (run.pl|queue.pl...)] <data-dir> <lang-dir|graph-dir> <decode-dir>"
echo "Usage: $0 [--cmd (run.pl|queue.pl...)] <data-dir> <lang-dir|graph-dir> <decode-dir>"
echo " Options:"
echo " --cmd (run.pl|queue.pl...) # specify how to run the sub-processes."
echo " --stage (0|1|2) # start scoring script from part-way through."
Expand All @@ -50,7 +50,7 @@ dir=$3
symtab=$lang_or_graph/words.txt

for f in $symtab $dir/lat.1.gz $data/text; do
[ ! -f $f ] && echo "score.sh: no such file $f" && exit 1;
[ ! -f $f ] && echo "$0: no such file $f" && exit 1;
done


Expand Down
4 changes: 2 additions & 2 deletions egs/wsj/s5/steps/scoring/score_kaldi_compare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ echo "$0 $@" # Print the command line for logging
. parse_options.sh || exit 1;

if [ $# -ne 3 ]; then
echo "Usage: local/score_compare.sh [--cmd (run.pl|queue.pl...)] <score-dir1> <score-dir2> <score-compare-dir>"
echo "Usage: $0 [--cmd (run.pl|queue.pl...)] <score-dir1> <score-dir2> <score-compare-dir>"
echo " Options:"
echo " --cmd (run.pl|queue.pl...) # specify how to run the sub-processes."
echo " --replications <int> # number of bootstrap evaluation to compute confidence."
Expand All @@ -29,7 +29,7 @@ mkdir -p $dir_compare/log

for d in $dir1 $dir2; do
for f in test_filt.txt best_wer; do
[ ! -f $d/$f ] && echo "score_compare.sh: no such file $d/$f" && exit 1;
[ ! -f $d/$f ] && echo "$0: no such file $d/$f" && exit 1;
done
done

Expand Down
2 changes: 1 addition & 1 deletion egs/wsj/s5/steps/scoring/score_kaldi_wer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ echo "$0 $@" # Print the command line for logging
. parse_options.sh || exit 1;

if [ $# -ne 3 ]; then
echo "Usage: local/score.sh [--cmd (run.pl|queue.pl...)] <data-dir> <lang-dir|graph-dir> <decode-dir>"
echo "Usage: $0 [--cmd (run.pl|queue.pl...)] <data-dir> <lang-dir|graph-dir> <decode-dir>"
echo " Options:"
echo " --cmd (run.pl|queue.pl...) # specify how to run the sub-processes."
echo " --stage (0|1|2) # start scoring script from part-way through."
Expand Down