Skip to content

Commit

Permalink
Some instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
vchahun committed Jul 3, 2012
1 parent 907da9b commit 68d723d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# python-kenlm

A python interface to [kenlm](http://kheafield.com/code/kenlm/)

## Installation

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

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

0 comments on commit 68d723d

Please sign in to comment.