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:
authorWilker Aziz <wilkeraziz@gmail.com>2015-07-09 21:56:59 +0300
committerWilker Aziz <wilkeraziz@gmail.com>2015-07-09 21:56:59 +0300
commit7e8ef6e90b2f36b1924d1ee27372f99f405ae0b2 (patch)
tree9d6aef5e9fdeb76dd7d1abf214d47b1779169375 /python
parent2a272e3d8471f7a524b752629ebce892eb24c791 (diff)
python3 compatible
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 508c98d..8a18f3a 100644
--- a/python/example.py
+++ b/python/example.py
@@ -20,7 +20,7 @@ words = ['<s>'] + sentence.split() + ['</s>']
for i, (prob, length, oov) in enumerate(model.full_scores(sentence)):
print('{0} {1}: {2}'.format(prob, length, ' '.join(words[i+2-length:i+2])))
if oov:
- print '\t"{0}" is an OOV'.format(words[i+1])
+ print('\t"{0}" is an OOV'.format(words[i+1]))
# Find out-of-vocabulary words
for w in words: