Skip to content

Commit

Permalink
Python fast path for sentence scoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Jul 5, 2019
1 parent 879c40c commit a3b0087
Show file tree
Hide file tree
Showing 6 changed files with 1,085 additions and 877 deletions.
2 changes: 2 additions & 0 deletions python/_kenlm.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ cdef extern from "lm/model.hh" namespace "lm::ngram":
#default constructor
cdef Model *LoadVirtual(char *) except +

cdef extern from "python/score_sentence.hh" namespace "lm::base":
cdef float ScoreSentence(const Model *model, const char *sentence)
Loading

0 comments on commit a3b0087

Please sign in to comment.