diff options
Diffstat (limited to 'python/kenlm.pyx')
-rw-r--r-- | python/kenlm.pyx | 11 |
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. |