Clare
Clare

Reputation: 5

Kenlm language model scoring with Java on Windows

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.

Upvotes: 0

Views: 336

Answers (1)

Clare
Clare

Reputation: 5

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

Upvotes: 0

Related Questions