'Are there free pre-built language Models for sentence probability prediction?

I am in search of a pre-built langugae model which predicts sentence probabilities. What I essentially want is to input a sentence, the output should then be a probabilitie based on conditional n-gram probabilities. I've searched for such pre-built models but didn't find anything alike. Do I have to build my own language model from scrach? If so what is the easiest way to build a language model from scratch? Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source