Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train LM with pip installed kenlm #447

Open
bchinnari opened this issue May 31, 2024 · 0 comments
Open

Train LM with pip installed kenlm #447

bchinnari opened this issue May 31, 2024 · 0 comments

Comments

@bchinnari
Copy link

Hello,

I am getting errors installing kenLM, on macOS, with the official git repo.
However , I am able to install kenLM quickly using pip.
Is there a way to train an LM by importing kenLM library in python.

import kenlm 

I saw kenlm.Model(), kenlm.LM(). But is there a way to get an arpa model out given some text using kenlm library in python.

@bchinnari bchinnari changed the title Train LM with pip installed keenly Train LM with pip installed kenlm May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant