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
diff options
context:
space:
mode:
Diffstat (limited to 'python/kenlm.pyx')
-rw-r--r--python/kenlm.pyx11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/kenlm.pyx b/python/kenlm.pyx
index 201720b..3e4cd9a 100644
--- a/python/kenlm.pyx
+++ b/python/kenlm.pyx
@@ -85,6 +85,11 @@ class LoadMethod:
READ = _kenlm.READ
PARALLEL_READ = _kenlm.PARALLEL_READ
+class ARPALoadComplain:
+ ALL = _kenlm.ALL
+ EXPENSIVE = _kenlm.EXPENSIVE
+ NONE = _kenlm.NONE
+
cdef class Config:
"""
Wrapper around lm::ngram::Config.
@@ -107,6 +112,12 @@ cdef class Config:
def __set__(self, to):
self._c_config.show_progress = to
+ property arpa_complain:
+ def __get__(self):
+ return self._c_config.arpa_complain
+ def __set__(self, to):
+ self._c_config.arpa_complain = to
+
cdef class Model:
"""
Wrapper around lm::ngram::Model.