A python interface to kenlm
pip install -e git+https://github.com/vchahun/kenlm.git#egg=kenlm
import kenlm
model = kenlm.LanguageModel('examples/mini.klm')
sentence = u'this is a sentence .'
print model.score(sentence)
A python interface to kenlm
pip install -e git+https://github.com/vchahun/kenlm.git#egg=kenlm
import kenlm
model = kenlm.LanguageModel('examples/mini.klm')
sentence = u'this is a sentence .'
print model.score(sentence)