Skip to content

Commit

Permalink
Merge pull request kpu#304 from owo/py_arpacomplain
Browse files Browse the repository at this point in the history
Added arpa_complain option to Config python wrapper.
  • Loading branch information
kpu authored Sep 30, 2020
2 parents b63a09c + 63537d9 commit ba2502b
Show file tree
Hide file tree
Showing 3 changed files with 904 additions and 277 deletions.
7 changes: 7 additions & 0 deletions python/_kenlm.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,19 @@ cdef extern from "util/mmap.hh" namespace "util":
READ
PARALLEL_READ

cdef extern from "lm/config.hh" namespace "lm::ngram::Config":
cdef enum ARPALoadComplain:
ALL
EXPENSIVE
NONE

cdef extern from "lm/config.hh" namespace "lm::ngram":
cdef cppclass Config:
Config()
float probing_multiplier
LoadMethod load_method
bool show_progress
ARPALoadComplain arpa_complain
float unknown_missing_logprob

cdef extern from "lm/model.hh" namespace "lm::ngram":
Expand Down
Loading

0 comments on commit ba2502b

Please sign in to comment.