<div dir="ltr">Hello,<div>I have a context of words and I've built an N-gram language model using ./ngram-count. I wish to generate a probability distribution (over the entire vocabulary of words) of the next word. I can't seem to be able to find a good way to do this with ./ngram.</div><div>What's the best way to do this?</div><div>For example, if my vocabulary has words "apple, banana, carrot", and my context is "apple banana banana carrot", I want a distribution like - {"apple": 0.25, "banana": 0.5, "carrot": 0.25}.</div><div><br></div><div>Thank you,</div><div>Kalpesh Krishna</div><div><a href="http://martiansideofthemoon.github.io/">http://martiansideofthemoon.github.io/</a><br></div><img width="0" height="0" class="mailtrack-img" src="https://mailtrack.io/trace/mail/ad8367d2c5be5618dcc9e29f0d588f0cab3da124.png?u=981539"></div>