make-ngram-pfsg cannot handle 1-grams?

Matthias Thomae thomae at
Thu Jul 4 06:54:49 PDT 2002


I am using version 1.3.1 and would like to generate a unigram lm in pfsg
format. I encounter problems when calling make-ngram-pfsg, see example
below. Any ideas?



  > cat test.txt
rote kugel
gruene kugel

  > ngram-count -text test.txt -lm test.lm -order 1
warning: discount coeff 1 is out of range: -0
tho at odin: ~/worktho/nadia/lm > cat test.lm

ngram 1=5

-0.4929155      </s>
-99     <s>
-0.748188       gruene
-0.4929155      kugel
-0.748188       rote


 > make-ngram-pfsg test.lm
output_for_node: got empty name
<s> tag undefined in LM

More information about the SRILM-User mailing list