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

Support compressed "arpa.gz" files #8

Open
pzelasko opened this issue Jul 7, 2021 · 3 comments
Open

Support compressed "arpa.gz" files #8

pzelasko opened this issue Jul 7, 2021 · 3 comments

Comments

@pzelasko
Copy link
Contributor

pzelasko commented Jul 7, 2021

It's nothing super important -- but it would have been convenient to support gzip-compressed ARPA LMs. If it was in Python you could use import gzip, but if it's native code then I'm not sure if there's a straightforward way...

def arpa2fst(input_arpa: str,

@csukuangfj
Copy link
Owner

Can we unzip the compressed file in python into a temp file and pass this temp file to C++?
After processing, we can delete the temp file.

@pzelasko
Copy link
Contributor Author

Sounds good.

@csukuangfj
Copy link
Owner

Sounds good.

ok, I will add it soon. Probably tomorrow.

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

2 participants