trunk: some minor script fixes

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3224 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Dan Povey 2013-11-27 04:59:56 +00:00
Родитель 14b16400e8
Коммит 7e2bc96dbb
2 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@ -28,7 +28,14 @@ mkdir -p $dest;
export LC_ALL=C
for file in utt2spk feats.scp text cmvn.scp segments reco2file_and_channel wav.scp $extra_files; do
for dir in $*; do
if [ ! -f $dir/utt2spk ]; then
echo "$0: no such file $dir/utt2spk"
exit 1;
fi
done
for file in utt2spk feats.scp text cmvn.scp segments reco2file_and_channel wav.scp spk2gender $extra_files; do
if [ -f $first_src/$file ]; then
( for f in $*; do cat $f/$file; done ) | sort -k1 > $dest/$file || exit 1;
echo "$0: combined $file"

Просмотреть файл

@ -21,7 +21,7 @@ for x in `seq 3`; do
done
if [ $# -ne 1 ]; then
echo "Usage: $0 [---no-feats] [---no-text] [---no-wav] data-dir"
echo "Usage: $0 [--no-feats] [--no-text] [--no-wav] data-dir"
echo "e.g.: $0 data/train"
fi
@ -80,7 +80,7 @@ check_sorted $data/spk2utt
cat $data/utt2spk | awk '{print $1;}' > $tmpdir/utts
if [ ! -f $data/text ] && ! $no_text; then
echo "$0: no such file $data/text (if this is by design, specify ---no-text)"
echo "$0: no such file $data/text (if this is by design, specify --no-text)"
exit 1;
fi
@ -104,7 +104,7 @@ fi
if [ ! -f $data/wav.scp ] && ! $no_wav; then
echo "$0: no such file $data/wav.scp (if this is by design, specify ---no-wav)"
echo "$0: no such file $data/wav.scp (if this is by design, specify --no-wav)"
exit 1;
fi
@ -187,7 +187,7 @@ if [ -f $data/wav.scp ]; then
fi
if [ ! -f $data/feats.scp ] && ! $no_feats; then
echo "$0: no such file $data/feats.scp (if this is by design, specify ---no-feats)"
echo "$0: no such file $data/feats.scp (if this is by design, specify --no-feats)"
exit 1;
fi