order of options to ngram-count

Andreas Stolcke stolcke at speech.sri.com
Fri Nov 2 08:05:31 PDT 2007


In message <B31D0E4E-EB44-4F81-AAC2-17E616D427AF at gmail.com>you wrote:
> My impression is that ngram-count is sensitive to the order of  
> options (1.5.4b from yesterday).
> 
> ngram-count -text - order 1 -write unigrams.count # takes up all  
> memory, runs forever

You have a typo in the above: "order" instead of "-order".

> 
> ngram-count -order 1 -text - write unigrams.count # finishes up  
> quickly in a fraction of memory
> 
> Does the former honor -order 1?  What's the rule here -- trailing - 
> write is honored anyways?  I now stick other flags, such as -tolower,  
> in front of -text - .

All SRILM programs are invariant to order of options.

--Andreas




More information about the SRILM-User mailing list