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

Problem with API #345

Open
johnlockejrr opened this issue Mar 11, 2024 · 2 comments
Open

Problem with API #345

johnlockejrr opened this issue Mar 11, 2024 · 2 comments

Comments

@johnlockejrr
Copy link

I have eScriptorium with tesseract and tesserocr, everything ok but when I try to train a model I get some error on API:
(https://ub-mannheim.github.io/eScriptorium_Dokumentation/eScriptorium-with-tesseract-extension.html)

[2024-03-11 14:11:09,546: WARNING/ForkPoolWorker-6] ['combine_tessdata', '-l', '/home/tesseract/eScriptorium/app/media/models/9e01fc44/samaritan_trans.traineddata']
'tesserocr.PyTessBaseAPI' object has no attribute 'WriteLSTMFLineData'
Traceback (most recent call last):
  File "/home/tesseract/eScriptorium/app/apps/core/tasks.py", line 987, in train
    {"kraken": train_kraken,
  File "/home/tesseract/eScriptorium/app/apps/core/tasks.py", line 653, in train_tesseract
    api.WriteLSTMFLineData(filepath.with_suffix('').name, str(filepath.parent.resolve()), cutout,
AttributeError: 'tesserocr.PyTessBaseAPI' object has no attribute 'WriteLSTMFLineData'
[2024-03-11 14:11:12,308: INFO/ForkPoolWorker-6] Task core.tasks.train[98c14ca7-901f-4c06-8bdb-d6a64b3e40f6] succeeded in 4.229517752999527s: None

Is the object WriteLSTMFLineData discontinued? If so, whith version does still have it? Thank you!

@zdenop
Copy link
Contributor

zdenop commented Mar 11, 2024

Why are you reporting your issue here and not at eScriptorium?

@johnlockejrr
Copy link
Author

johnlockejrr commented Mar 11, 2024 via email

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