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

No such file or directory: './src/dictionary/dictionary.pkl' when running OcrTable() with spell_corrector = True #221

Closed
KiprasKancys opened this issue Sep 27, 2024 · 2 comments · Fixed by #223
Assignees

Comments

@KiprasKancys
Copy link

Describe the bug
Running OcrTable with spell_corrector = True gives an error No such file or directory: './src/dictionary/dictionary.pkl'

To Reproduce

from nkocr import OcrTable

text = OcrTable("https://www.fda.gov/files/Nutrition-Facts-Label-Education-Campaign.png", spell_corrector = True)

Probably caused by:

https://github.com/Lucs1590/Nkocr/blob/master/src/auxiliary.py#L647

Package was install with pip, I think if I clone the repo I can make it work, but still worth fixing for the future users.

Copy link

Thanks for contributing this issue! We will be replying soon.

@Lucs1590
Copy link
Owner

@KiprasKancys Thank you very much for your issue. I tried to use the new Github feature (Copilot Workspace) and by downloading it via pip we were able to solve the problem mentioned, so I will leave the issue as resolved. However, if you still have questions or find something in the project that could be improved, feel free to write again or even open a new issue.

As of version v2.5.1 the feature is fixed, so update your package using the following command:

pip install nkocr --upgrade

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 a pull request may close this issue.

2 participants