-
Notifications
You must be signed in to change notification settings - Fork 591
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
Pickle fails with EOFError while loading models on Windows #12
Comments
Did you download the model in binary mode? That particular page and example is in Fraktur (traditional German script), not English, so you need a different model. |
I am getting the same problem while loading the model in windows. what should i do?
|
In version 1.3.3 I found the common.py is opening the model using gunzip, which is not available on Windows natively. Adding an import gzip, uncommenting line 442 and commenting out 443 resolved the issue for me. |
Here's the traceback (I edited the path to \ocropy):
0001.bin.png
is:fraktur.pyrnn.gz
is freshly downloaded from http://www.tmbdev.net/fraktur.pyrnn.gz. I am running Win7 x64 and Python 2.7.6 x64.Also, why do the instructions first suggest downloading
en-default.pyrnn.gz
and then running withfraktur.pyrnn.gz
?The text was updated successfully, but these errors were encountered: