summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 727d39a)
raw | patch | inline | side by side (parent: 727d39a)
author | Zhouyang Zhang <zzhang@b04.clsp.jhu.edu> | |
Tue, 14 Jun 2016 06:23:28 +0000 (02:23 -0400) | ||
committer | Daniel Povey <dpovey@gmail.com> | |
Mon, 8 Aug 2016 23:26:12 +0000 (19:26 -0400) |
egs/swbd/s5c/local/swbd1_train_lms.sh | patch | blob | history |
index 2d2fd4dcf083b31318f67917ff342e3cc0becdc8..969eddf10c6b5a328b0a3ad65702e373aefbb813 100755 (executable)
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