Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kpu/kenlm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2016-03-12 03:11:06 +0300
committerKenneth Heafield <github@kheafield.com>2016-03-12 03:11:06 +0300
commit5a530ddd8e0f69a9ea546a2727417f25610943b3 (patch)
treef2fb34f05a07fccd053f38fb0703292527421de8 /python
parent128d66cff945afaa164ba3a77ac4fc331e19f945 (diff)
LanguageModel -> Model
Diffstat (limited to 'python')
-rw-r--r--python/example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/example.py b/python/example.py
index 8a18f3a..58ac05e 100644
--- a/python/example.py
+++ b/python/example.py
@@ -2,7 +2,7 @@ import os
import kenlm
LM = os.path.join(os.path.dirname(__file__), '..', 'lm', 'test.arpa')
-model = kenlm.LanguageModel(LM)
+model = kenlm.Model(LM)
print('{0}-gram model'.format(model.order))
sentence = 'language modeling is fun .'