[SRILM User List] Predicting specified words
Andreas Stolcke
stolcke at icsi.berkeley.edu
Mon Feb 13 07:38:26 PST 2012
On 2/12/2012 4:35 AM, zeinab vakil wrote:
>
> Thanks for all guidances,
> how can i give query to srilm to obtain probability P(word-1|word-2)?
> I want to use SRILM as server and send my query to it and receive
> probability of requested bi-gram or n-gram. does it possible?
> please guide me.
> best regards,
> zeinab
If you want to invoke SRILM via the C++ API, use the wordProb() function.
The other options are writing/reading to/from ngram via a pipe, or using
the ngram client/server protocol.
See this recent thread for details:
http://www.speech.sri.com/pipermail/srilm-user/2012q1/001148.html .
Andreas
More information about the SRILM-User
mailing list