kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.51k stars 511 forks source link

Estimation from python wrapper #99

Open vicmak opened 7 years ago

vicmak commented 7 years ago

Hi! Thanks for the great software! Can I make an estimation of LM from the python module? For example, something like this:

my_model = kenlm.Model("/path/to/textfile.txt")

?

Or I can only query the model with python, but I have to do the estimation with the CPP code?

Thanks a lot!

kpu commented 7 years ago

Currently estimation is C++/command-line only. Contributions welcome.

Garvys commented 6 years ago

What is the status on integrating the training in the python wrapper ? Can I work on it ? @kpu

manishbansal-fk commented 6 years ago

@kpu Can we please review & merge @Garvys PR. https://github.com/kpu/kenlm/pull/118