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
5 changes: 1 addition & 4 deletions egs/aspire/s5/local/fisher_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@ srcdict=$srcdir/swb_ms98_transcriptions/sw-ms98-dict.text

#(2a) Dictionary preparation:
# Pre-processing (Upper-case, remove comments)
awk 'BEGIN{getline}($0 !~ /^#/) {$0=toupper($0); print}' \
$srcdict | sort | awk '($0 !~ /^[:space:]*$/) {print}' \
> $dir/lexicon1.txt || exit 1;

grep -v '^#' $srcdict | tr '[a-z]' '[A-Z]' | awk 'NF>0' | sort > $dir/lexicon1.txt || exit 1;

cat $dir/lexicon1.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
grep -v SIL > $dir/nonsilence_phones.txt || exit 1;
Expand Down
5 changes: 1 addition & 4 deletions egs/fisher_english/s5/local/fisher_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@ srcdict=$srcdir/swb_ms98_transcriptions/sw-ms98-dict.text

#(2a) Dictionary preparation:
# Pre-processing (Upper-case, remove comments)
awk 'BEGIN{getline}($0 !~ /^#/) {$0=toupper($0); print}' \
$srcdict | sort | awk '($0 !~ /^[:space:]*$/) {print}' \
> $dir/lexicon1.txt || exit 1;

grep -v '^#' $srcdict | tr '[a-z]' '[A-Z]' | awk 'NF>0' | sort > $dir/lexicon1.txt || exit 1;

cat $dir/lexicon1.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
grep -v SIL > $dir/nonsilence_phones.txt || exit 1;
Expand Down
7 changes: 2 additions & 5 deletions egs/fisher_swbd/s5/local/fisher_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,8 @@ cp $srcdict $dir/lexicon0.txt || exit 1;
patch <local/dict.patch $dir/lexicon0.txt || exit 1;

#(2a) Dictionary preparation:
# Pre-processing (Upper-case, remove comments)
awk 'BEGIN{getline}($0 !~ /^#/) {print}' \
$dir/lexicon0.txt | sort | awk '($0 !~ /^[[:space:]]*$/) {print}' \
> $dir/lexicon1_swbd.txt || exit 1;

# Pre-processing (remove comments)
grep -v '^#' $dir/lexicon0.txt | awk 'NF>0' | sort > $dir/lexicon1_swbd.txt || exit 1;

cat $dir/lexicon1_swbd.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
grep -v SIL > $dir/nonsilence_phones_msu.txt || exit 1;
Expand Down
7 changes: 2 additions & 5 deletions egs/fisher_swbd/s5/local/fisher_swbd_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,8 @@ cp $srcdict $dir/lexicon0.txt || exit 1;
patch <local/dict.patch $dir/lexicon0.txt || exit 1;

#(2a) Dictionary preparation:
# Pre-processing (Upper-case, remove comments)
awk 'BEGIN{getline}($0 !~ /^#/) {print}' \
$dir/lexicon0.txt | sort | awk '($0 !~ /^[[:space:]]*$/) {print}' \
> $dir/lexicon1_swbd.txt || exit 1;

# Pre-processing (remove comments)
grep -v '^#' $dir/lexicon0.txt | awk 'NF>0' | sort > $dir/lexicon1_swbd.txt || exit 1;

cat $dir/lexicon1_swbd.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
grep -v SIL > $dir/nonsilence_phones_msu.txt || exit 1;
Expand Down
7 changes: 2 additions & 5 deletions egs/fisher_swbd/s5/local/swbd1_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ srcdict=$srcdir/swb_ms98_transcriptions/sw-ms98-dict.text
[ ! -f "$srcdict" ] && echo "No such file $srcdict" && exit 1;

#(2a) Dictionary preparation:
# Pre-processing (Upper-case, remove comments)
awk 'BEGIN{getline}($0 !~ /^#/) {$0=tolower($0); print}' \
$srcdict | sort | awk '($0 !~ /^[:space:]*$/) {print}' \
> $dir/lexicon1.txt || exit 1;

# Pre-processing (Lower-case, remove comments)
grep -v '^#' $srcdict | tr '[A-Z]' '[a-z]' | awk 'NF>0' | sort > $dir/lexicon1.txt || exit 1;

cat $dir/lexicon1.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
grep -v sil > $dir/nonsilence_phones.txt || exit 1;
Expand Down
5 changes: 1 addition & 4 deletions egs/sre10/v1/local/dnn/fisher_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,7 @@ srcdict=$srcdir/swb_ms98_transcriptions/sw-ms98-dict.text

#(2a) Dictionary preparation:
# Pre-processing (Upper-case, remove comments)
awk 'BEGIN{getline}($0 !~ /^#/) {$0=toupper($0); print}' \
$srcdict | sort | awk '($0 !~ /^[:space:]*$/) {print}' \
> $dir/lexicon1.txt || exit 1;

grep -v '^#' $srcdict | tr '[a-z]' '[A-Z]' | awk 'NF>0' | sort > $dir/lexicon1.txt || exit 1;

cat $dir/lexicon1.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
grep -v SIL > $dir/nonsilence_phones.txt || exit 1;
Expand Down
7 changes: 2 additions & 5 deletions egs/swbd/s5/local/swbd1_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ srcdict=$srcdir/swb_ms98_transcriptions/sw-ms98-dict.text
[ ! -f "$srcdict" ] && echo "No such file $srcdict" && exit 1;

#(2a) Dictionary preparation:
# Pre-processing (Upper-case, remove comments)
awk 'BEGIN{getline}($0 !~ /^#/) {$0=tolower($0); print}' \
$srcdict | sort | awk '($0 !~ /^[[:space:]]*$/) {print}' \
> $dir/lexicon1.txt || exit 1;

# Pre-processing (Lower-case, remove comments)
grep -v '^#' $srcdict | tr '[A-Z]' '[a-z]' | awk 'NF>0' | sort > $dir/lexicon1.txt || exit 1;

cat $dir/lexicon1.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
grep -v sil > $dir/nonsilence_phones.txt || exit 1;
Expand Down
5 changes: 1 addition & 4 deletions egs/swbd/s5/local/swbd_p1_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ srcdict=$srcdir/swb_ms98_transcriptions/sw-ms98-dict.text

#(2a) Dictionary preparation:
# Pre-processing (Upper-case, remove comments)
awk 'BEGIN{getline}($0 !~ /^#/) {$0=toupper($0); print}' \
$srcdict | sort | awk '($0 !~ /^[:space:]*$/) {print}' \
> $dir/lexicon1.txt || exit 1;

grep -v '^#' $srcdict | tr '[a-z]' '[A-Z]' | awk 'NF>0' | sort > $dir/lexicon1.txt || exit 1;

cat $dir/lexicon1.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
grep -v SIL > $dir/nonsilence_phones.txt || exit 1;
Expand Down
4 changes: 1 addition & 3 deletions egs/swbd/s5b/local/swbd1_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ patch <local/dict.patch $dir/lexicon0.txt || exit 1;

#(2a) Dictionary preparation:
# Pre-processing (lower-case, remove comments)
awk 'BEGIN{getline}($0 !~ /^#/) {$0=tolower($0); print}' \
$srcdict | sort | awk '($0 !~ /^[[:space:]]*$/) {print}' \
> $dir/lexicon1.txt || exit 1;
grep -v '^#' $srcdict | tr '[A-Z]' '[a-z]' | awk 'NF>0' | sort > $dir/lexicon1.txt || exit 1;


cat $dir/lexicon1.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
Expand Down
3 changes: 1 addition & 2 deletions egs/swbd/s5c/local/swbd1_prepare_dict.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ cp $srcdict $dir/lexicon0.txt || exit 1;
patch <local/dict.patch $dir/lexicon0.txt || exit 1;

#(2a) Dictionary preparation:
# Pre-processing (remove comments, remove empty lines)
# Pre-processing (remove comments)
grep -v '^#' $dir/lexicon0.txt | awk 'NF>0' | sort > $dir/lexicon1.txt || exit 1;


cat $dir/lexicon1.txt | awk '{ for(n=2;n<=NF;n++){ phones[$n] = 1; }} END{for (p in phones) print p;}' | \
grep -v sil > $dir/nonsilence_phones.txt || exit 1;

Expand Down