Skip to content

Commit

Permalink
[python] Change to non-binary LM in example; catch C++ exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vchahun committed Jul 4, 2012
1 parent 0121f57 commit a14f2ca
Show file tree
Hide file tree
Showing 5 changed files with 306 additions and 78 deletions.
2 changes: 1 addition & 1 deletion examples/example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import kenlm

LM = os.path.join(os.path.dirname(__file__), 'mini.klm')
LM = os.path.join(os.path.dirname(__file__), '..', 'lm', 'test.arpa')
model = kenlm.LanguageModel(LM)
print('{0}-gram model'.format(model.order))

Expand Down
Binary file removed examples/mini.klm
Binary file not shown.
Loading

0 comments on commit a14f2ca

Please sign in to comment.