[SRILM User List] use ngram computer perplexity of per line string on hadoop

Christophe Servan christophe.servan at gmail.com
Tue Oct 15 05:56:48 PDT 2013


Hi,
long ago I used the ngram program as server. It is related to the switch
-server-port.
This may be a solution.

Best,

Christophe



2013/10/15 徐 <xulikui123321 at 163.com>

> I have solved the problem of computer perplexity of per line string by use
> ngram, as follows(perl script):
> foreach my $line(@lines){
> $str = `echo $line | ngram -lm news.lm -ppl - -debug 1`;
> print $str ."\n";
> }
> but if the language model too big, I should load the language every line.
> that's a waste of time, is there some method that I only should load the
> language model once? like replace the lm file (news.lm) with a file
> pointer?
>
>
>
> _______________________________________________
> SRILM-User site list
> SRILM-User at speech.sri.com
> http://www.speech.sri.com/mailman/listinfo/srilm-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20131015/44cd6ffb/attachment.html>


More information about the SRILM-User mailing list