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

failed to load ./ita.special-words #881

Open
varvello opened this issue Jan 30, 2024 · 1 comment
Open

failed to load ./ita.special-words #881

varvello opened this issue Jan 30, 2024 · 1 comment

Comments

@varvello
Copy link

I'm using https://cdn.jsdelivr.net/npm/tesseract.js@5/dist/tesseract.min.js

If you create an italian worker:
const worker = await Tesseract.createWorker("ita");

You'll see this error in the console
failed to load ./ita.special-words

It's located at tesseract-core-simd-lstm.wasm.js:31

Cheers

@Balearica
Copy link
Collaborator

I was able to replicate this. Presumably there is some file missing from the default ita.traineddata file that exists for other languages. Luckily, it looks like this does not actually impact recognition, as everything appeared to work as normal warning message notwithstanding.

As Tesseract.js uses the same default .traineddata as the main Tesseract project (albeit possibly out of date), this is only actionable if that project has updated ita.traineddata to resolve this issue. I can look into this at some point when I have more time. In the meantime, users who want to use an alternative .traineddata file can do so by setting langPath.

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