Skip to content

Commit f3b5f5b

Browse files
vineelpratapdanpovey
authored andcommitted
[egs] Fix regex filter in Fisher preprocessing (was excluding 2-letter sentences like "um") (#3548)
1 parent 605732a commit f3b5f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

egs/fisher_swbd/s5/local/fisher_data_prep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ if [ $stage -le 1 ]; then
118118
$line1 =~ m/# (.+)\.sph/ || die "Bad first line $line1 in file $file";
119119
$call_id eq $1 || die "Mismatch call-id $call_id vs $1\n";
120120
while (<I>) {
121-
if (m/([0-9.]+)\s+([0-9.]+) ([AB]):\s*(\S.+\S|\S)\s*$/) {
121+
if (m/([0-9.]+)\s+([0-9.]+) ([AB]):\s*(\S.*\S|\S)\s*$/) {
122122
$start = sprintf("%06d", $1 * 100.0);
123123
$end = sprintf("%06d", $2 * 100.0);
124124
length($end) > 6 && die "Time too long $end in file $file";

0 commit comments

Comments
 (0)