]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/kaldi.git/commitdiff
fix overlapping line bug
authorZhouyang Zhang <zzhang@b04.clsp.jhu.edu>
Tue, 14 Jun 2016 06:23:28 +0000 (02:23 -0400)
committerDaniel Povey <dpovey@gmail.com>
Mon, 8 Aug 2016 23:26:12 +0000 (19:26 -0400)
egs/swbd/s5c/local/swbd1_train_lms.sh

index 2d2fd4dcf083b31318f67917ff342e3cc0becdc8..969eddf10c6b5a328b0a3ad65702e373aefbb813 100755 (executable)
@@ -75,7 +75,7 @@ export LC_ALL=C
 
 heldout_sent=10000
 cut -d' ' -f2- $text | gzip -c > $dir/train.all.gz
-cut -d' ' -f2- $text | tail -n +$heldout_sent | gzip -c > $dir/train.gz
+cut -d' ' -f2- $text | tail -n +$(($heldout_sent+1)) | gzip -c > $dir/train.gz
 cut -d' ' -f2- $text | head -n $heldout_sent > $dir/heldout
 
 cut -d' ' -f1 $lexicon > $dir/wordlist