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

EEROR #7

Open
Liuxiaowang123 opened this issue Jul 3, 2023 · 1 comment
Open

EEROR #7

Liuxiaowang123 opened this issue Jul 3, 2023 · 1 comment

Comments

@Liuxiaowang123
Copy link

After i run the command :bzcat bible.en.txt.bz2 | python preprocess.py | ./kenlm/bin/lmplz -o 3 > bible.arpa,

ERROR:bash: ./kenlm/bin/lmplz: No such file or directory
Traceback (most recent call last):
File "preprocess.py", line 6, in
print(' '.join(nltk.word_tokenize(sentence)).lower())
BrokenPipeError: [Errno 32] Broken pipe.

@MagLoe1
Copy link

MagLoe1 commented Dec 2, 2023

Hi!
I had the same problem (I think it was because the lmplz folder was not created), but I think I found a solution: The link in the instructions to clone the repo does not lead to the latest repository; it should work if you use this one instead: https://github.com/kpu/kenlm and follow the instructions for compiling. (Everything is then stored in the /build folder, so you have to adjust some paths in the commands in the instructions here on this tutorial.) Hope that helps!

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