Skip to content

Commit

Permalink
Extend python wrapper of config, add State __deepcopy__.
Browse files Browse the repository at this point in the history
Should fix kpu#238 and kpu#228
  • Loading branch information
kpu committed Sep 2, 2019
1 parent ed41a64 commit f39edc3
Show file tree
Hide file tree
Showing 3 changed files with 673 additions and 403 deletions.
4 changes: 4 additions & 0 deletions python/_kenlm.pxd
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from libcpp cimport bool

cdef extern from "lm/word_index.hh" namespace "lm":
ctypedef unsigned WordIndex

Expand Down Expand Up @@ -42,6 +44,8 @@ cdef extern from "lm/config.hh" namespace "lm::ngram":
Config()
float probing_multiplier
LoadMethod load_method
bool show_progress
float unknown_missing_logprob

cdef extern from "lm/model.hh" namespace "lm::ngram":
cdef Model *LoadVirtual(char *, Config &config) except +
Expand Down
Loading

0 comments on commit f39edc3

Please sign in to comment.