Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[egs] Add recipes for CN-Celeb #3758

Merged
merged 16 commits into from
Dec 14, 2019
Prev Previous commit
Next Next commit
[scripts] add --no-text option
  • Loading branch information
csltstu committed Dec 7, 2019
commit 20cc8dd97907d52cba41381a8179274782ae606d
8 changes: 5 additions & 3 deletions egs/wsj/s5/utils/data/combine_short_segments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if ! mkdir -p $dir; then
exit 1;
fi

if ! utils/validate_data_dir.sh $srcdir; then
if ! utils/validate_data_dir.sh --no-text $srcdir; then
echo "$0: failed to validate input directory $srcdir. If needed, run utils/fix_data_dir.sh $srcdir"
exit 1
fi
Expand Down Expand Up @@ -87,7 +87,9 @@ utils/apply_map.pl -f 2- $srcdir/feats.scp <$dir/utt2utts | \

# create $dir/text by concatenating the source 'text' entries for the original
# utts.
utils/apply_map.pl -f 2- $srcdir/text <$dir/utt2utts > $dir/text
if [ -f $srcdir/text ]; then
utils/apply_map.pl -f 2- $srcdir/text <$dir/utt2utts > $dir/text
fi

if [ -f $srcdir/utt2uniq ]; then
# the utt2uniq file is such that if 2 utts were derived from the same original
Expand Down Expand Up @@ -171,7 +173,7 @@ fi
# note: the user will have to recompute the cmvn, as the speakers may have changed.
rm $dir/cmvn.scp 2>/dev/null || true

utils/validate_data_dir.sh --no-wav $dir
utils/validate_data_dir.sh --no-text --no-wav $dir

if $cleanup; then
rm $dir/utt2utts
Expand Down