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

User-Words file not loaded: Error: failed to load user-words #415

Open
juergenm opened this issue Dec 4, 2019 · 5 comments
Open

User-Words file not loaded: Error: failed to load user-words #415

juergenm opened this issue Dec 4, 2019 · 5 comments

Comments

@juergenm
Copy link

juergenm commented Dec 4, 2019

Since I updated to the branch https://github.com/gali8/Tesseract-OCR-iOS/tree/macos-support I'm getting the Message Error: failed to load user-words and my User-Words file is ignored.

Maybe this relates to tesseract-ocr/tesseract#2584 which should be fixed in the current version of tesseract.

@hamchapman Could you please update to the current tesseract Version?
Thank You

@hamchapman
Copy link
Collaborator

I'll get to this eventually but if you want it to happen sooner then you can try making a PR that uses the macos-support branch as its base. It should be quite straightforward to bump the tesseract version.

If you're happy to give it a go then I'm happy to help you get a PR up that we can get merged 👍

@juergenm
Copy link
Author

juergenm commented Dec 4, 2019

Thanks for the quick reply. I updated tesseract but i get the following errors when compiling. What am I missing?

ld: warning: ignoring file /usr/local/Cellar/webp/1.0.3/lib/libwebp.dylib, building for iOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/Cellar/openjpeg/2.3.1/lib/libopenjp2.dylib, building for iOS-arm64 but attempting to link with file built for macOS-x86_64
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
...

@astrung
Copy link

astrung commented Dec 12, 2019

Hi. I have same problem with user_words config. Can you look at this link and answer this question for me?
https://stackoverflow.com/questions/59307205/tesseract-5-0-bazaar-user-words-config-doesnt-work

@juergenm
Copy link
Author

The Problem only seems to exist with the user_words_suffix and the user_patterns_suffix config variable. A workaround is to use user_words_file and user_patterns_file.

@astrung
Copy link

astrung commented Dec 16, 2019

@juergenm I have used it, but it doesn't change result. Please check my comment: https://stackoverflow.com/a/59307421

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

3 participants