Kenlm language model scoring with Java on Windows

327 Views Asked by At

I'm mid-way through a Java project using a '.arpa' file to extract n-gram probabilities. Ideally I would like to use a '.klm' file (created using the '.arpa' file), similar to:

model = kenlm.LanguageModel('languageModel.klm')
model.score('The dog chased the ball.')

however kenlm for Java isn't supported on windows. Does anyone know of any alternatives to score sentences?

Thanks.

1

There are 1 best solutions below

0
On

Resolved by just using a virtual machine to run the project using kenlm