summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3dffe09)
raw | patch | inline | side by side (parent: 3dffe09)
author | Peter Smit <peter@smitmail.eu> | |
Sat, 1 Oct 2016 17:38:14 +0000 (20:38 +0300) | ||
committer | Daniel Povey <dpovey@gmail.com> | |
Sat, 1 Oct 2016 17:38:14 +0000 (13:38 -0400) |
This fix makes the complete cleanup scripts succeed for data that has no
word boundaries defined.
word boundaries defined.
egs/wsj/s5/steps/cleanup/lattice_oracle_align.sh | patch | blob | history |
diff --git a/egs/wsj/s5/steps/cleanup/lattice_oracle_align.sh b/egs/wsj/s5/steps/cleanup/lattice_oracle_align.sh
index 16cbf1d3b2ee004ffcf3924ecf296d2ccf37efc7..80b4739a62926cf95f3f776aa9ed2df6c9cf775e 100755 (executable)
set -o pipefail '&&' \
lattice-align-words-lexicon $lang/phones/align_lexicon.int $model "ark:gunzip -c $dir/lat.JOB.gz|" ark:- \| \
nbest-to-ctm --frame-shift=$frame_shift --print-silence=$print_silence ark:- - \| \
- utils/int2sym.pl -f 5 $lang/words.txt \| \
- $filter_cmd '>' $dir/ctm.JOB || exit 1;
+ utils/int2sym.pl -f 5 $lang/words.txt '>' $dir/ctm.JOB || exit 1;
else
echo "$0: neither $lang/phones/word_boundary.int nor $lang/phones/align_lexicon.int exists: cannot align."
exit 1;