Re: [Moses-support] Get the probability of a given n-gram in a language model

2014-05-30 Thread Albert Llorens
Excellent. Thanks a lot Kenneth. Albert -Original Message- From: Kenneth Heafield [mailto:mo...@kheafield.com] Sent: lunes, 26 de mayo de 2014 20:05 To: Albert Llorens; moses-support@mit.edu Subject: Re: [Moses-support] Get the probability of a given n-gram in a language model Hi

Re: [Moses-support] Get the probability of a given n-gram in a language model

2014-05-26 Thread Kenneth Heafield
d regards. > > Albert > > > -Original Message- > From: moses-support-boun...@mit.edu [mailto:moses-support-boun...@mit.edu] On > Behalf Of Kenneth Heafield > Sent: viernes, 23 de mayo de 2014 17:34 > To: moses-support@mit.edu > Subject: Re: [Moses-sup

Re: [Moses-support] Get the probability of a given n-gram in a language model

2014-05-26 Thread Albert Llorens
lbert -Original Message- From: moses-support-boun...@mit.edu [mailto:moses-support-boun...@mit.edu] On Behalf Of Kenneth Heafield Sent: viernes, 23 de mayo de 2014 17:34 To: moses-support@mit.edu Subject: Re: [Moses-support] Get the probability of a given n-gram in a language model Hi, You ca

Re: [Moses-support] Get the probability of a given n-gram in a language model

2014-05-23 Thread Kenneth Heafield
Hi, You can use bin/query on an ARPA or KenLM file. Then just type sentences at it (or use a file as stdin). By default it will assume you are scoring sentences. You can pass -n to not wrap in and . It appears that you are asking to score sentence fragments. The leading words

[Moses-support] Get the probability of a given n-gram in a language model

2014-05-23 Thread Albert Llorens
Hi, Is there a straightforward way I can ask Moses for the probability (or the frequency) of a given n-gram in a given language model? If so, can I do the query through mosesserver? Thanks. Kind regards. Albert ___ Moses-support mailing list Moses-