Skip to content

Commit

Permalink
Merge pull request kpu#116 from xxks-kkk/master
Browse files Browse the repository at this point in the history
Rename Model to LanguageModel
  • Loading branch information
kpu authored Jan 18, 2018
2 parents 35835f1 + b47ec1f commit 45686c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import kenlm

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

sentence = 'language modeling is fun .'
Expand Down

0 comments on commit 45686c9

Please sign in to comment.