[SRILM User List] bigram and trigram probability table

Ananda K.C. kcananda at gmail.com
Mon Aug 20 20:08:23 PDT 2012


Dear Andreas,

Thanks for your help.


On Fri, Aug 17, 2012 at 11:54 PM, Andreas Stolcke <stolcke at icsi.berkeley.edu
> wrote:

>  Ananda,
>
> the easiest way to have the toolkit compute your bigram and trigram
> probabilities once you have the model trained is:
>
> ngram -lm /home/ananda/Desktop/work/anandamodeling -debug 2 -counts NGRAMS
>
> where NGRAMS is a file you prepare that lists all the bigrams and trigrams
> you need, followed by a "1".
> For example:
>
> i i 1
> i want 1
> i to 1
> want want 1
> to to 1
> etc.
>
> Andreas
>
>
>
> On 8/16/2012 9:14 PM, Ananda K.C. wrote:
>
> Dear all,
>
> I am doing dissertation of my Master's degree in computer science.I
> want to calculate the bigram and trigram probability table as in
> attachment,from back off N-gram language models in ARPA format.
>
> Also when i use this command "ngram-count -order 3 -read
> /home/ananda/Desktop/work/countoutput.txt -vocab
> /home/ananda/Desktop/work/corpusvocab.txt -lm
> /home/ananda/Desktop/work/anandamodeling",which discounting is use for
> backoff smothing.
>
> I am new in the language modeling and thanks in advance.
>
>
> Regards,
> Ananda K.C.
>
>
>
> _______________________________________________
> SRILM-User site listSRILM-User at speech.sri.comhttp://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/20120821/df498ec6/attachment.html>


More information about the SRILM-User mailing list