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

Adds KenLM related jobs #451

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Adds KenLM related jobs #451

merged 2 commits into from
Sep 26, 2023

Conversation

JackTemaki
Copy link
Contributor

Adds a job for:

  • compiling KenLM
  • Building an ARPA-LM using lmplz
  • Converting an LM into binary format

I had this stuff around for a longer time and completely forgot about it.

Adds a job for:
 - compiling KenLM
 - Building an ARPA-LM using lmplz
 - Converting an LM into binary format
lm/kenlm.py Outdated

self.out_lm = self.output_path("lm.gz")

self.rqmt = {"cpu": 1, "mem": 4.0, "time": 1}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be configurable? text file size might vary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean you can always configure it later via job.rqmt, but yes I could add this as direct paramter.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true.. my reasoning would be to put in the args of the job. otherwise, users will run once it crashes and then start thinking about it.. maybe not all users but my feeling/hope is that it would be less ^^

lm/kenlm.py Outdated Show resolved Hide resolved
lm/kenlm.py Outdated Show resolved Hide resolved
@JackTemaki JackTemaki merged commit 9689c8e into main Sep 26, 2023
4 checks passed
@JackTemaki JackTemaki deleted the nick-kenlm-jobs branch September 27, 2023 09:06
Atticus1806 pushed a commit that referenced this pull request Oct 2, 2023
Adds a job for:
 - compiling KenLM
 - Building an ARPA-LM using lmplz
 - Converting an LM into binary format
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

Successfully merging this pull request may close these issues.

3 participants