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

Convert to Maven for easier builds, and make ARPA reader robust #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

witbrock
Copy link

http://www1.icsi.berkeley.edu/Speech/docs/HTKBook3.2/node213_mn.html
specifies the ARPA LM format. In particular, there doesn't seem to be a requirement for tabs, and
in fact the CMU Sphinx LM files at http://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/ don't use tabs to delimit the logprob and backoff weight from the ngram.

This change 1) converts the format of the project from Ant to Maven
and 2) rewrites nlp.lm.io/ArpaLmReader.java so that it's a bit shorter and reads all the files it used to, along with Sphinx (and I think, any other compliant ARPA) LM files.

the second more substantial change could probably be taken without taking the first build related one

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.

1 participant