[SRILM User List] Predicting words

Andreas Stolcke stolcke at icsi.berkeley.edu
Tue Sep 4 18:55:36 PDT 2012


In message <50469865.2010309 at icsi.berkeley.edu>I wrote:
> 
> Anyway, here is a short example that demonstrates that my instructions 
> worked in principle ;-).
> It uses the trigram LM supplied with SRILM.
> 
> # construct the map file in classes format
> ngram -order 1 -lm $SRILM/lm/test/tests/ngram-count-gt/swbd.3bo.gz 
> -write-vocab - | \
> gawk '{ print $1, 1, $1; print $1, 1, "UNKNOWN-WORD" }' lm.vocab > 
> test.mapfile

Copy-and-paste error.   The above command should be 

ngram -order 1 -lm $SRILM/lm/test/tests/ngram-count-gt/swbd.3bo.gz -write-vocab - | \
gawk '{ print $1, 1, $1; print $1, 1, "UNKNOWN-WORD" }'  > test.mapfile


Andreas



More information about the SRILM-User mailing list