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

github.com/moses-smt/nplm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/nplm.pyx')
-rw-r--r--src/python/nplm.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/nplm.pyx b/src/python/nplm.pyx
index 290d56c..9f882ae 100644
--- a/src/python/nplm.pyx
+++ b/src/python/nplm.pyx
@@ -6,7 +6,7 @@ cdef class NeuralLM:
self.thisptr.set_normalization(normalization)
self.thisptr.set_log_base(10.)
if type(map_digits) is str and len(map_digits) == 1:
- self.thisptr.set_map_digits(map_digits)
+ self.thisptr.set_map_digits((<char *>map_digits)[0])
if cache_size:
self.thisptr.set_cache(cache_size)