Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 331 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 331 Bytes

python-kenlm

A python interface to kenlm

Installation

pip install -e git+https://github.com/vchahun/kenlm.git#egg=kenlm

Basic Usage

import kenlm
model = kenlm.LanguageModel('examples/mini.klm')
sentence = u'this is a sentence .'
print model.score(sentence)