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

UnorderedGroup #53

Open
3 tasks
mikegerber opened this issue Apr 15, 2021 · 0 comments
Open
3 tasks

UnorderedGroup #53

mikegerber opened this issue Apr 15, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@mikegerber
Copy link
Member

@cneud reported problems with the ENP dataset. Example files:

example.zip

The GT file contains an UnorderedGroup which triggers an NotImplementedError:

% dinglehopper 00008061.gt.xml 00008061.eng.xml
Traceback (most recent call last):
  File "/home/mike/.virtualenvs/dinglehopper-github/bin/dinglehopper", line 11, in <module>
    load_entry_point('dinglehopper', 'console_scripts', 'dinglehopper')()
  File "/home/mike/.virtualenvs/dinglehopper-github/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/mike/.virtualenvs/dinglehopper-github/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/mike/.virtualenvs/dinglehopper-github/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/mike/.virtualenvs/dinglehopper-github/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/mike/devel/dinglehopper-github/qurator/dinglehopper/cli.py", line 180, in main
    process(gt, ocr, report_prefix, metrics=metrics, textequiv_level=textequiv_level)
  File "/home/mike/devel/dinglehopper-github/qurator/dinglehopper/cli.py", line 93, in process
    gt_text = extract(gt, textequiv_level=textequiv_level)
  File "/home/mike/devel/dinglehopper-github/qurator/dinglehopper/ocr_files.py", line 155, in extract
    return page_extract(tree, textequiv_level=textequiv_level)
  File "/home/mike/devel/dinglehopper-github/qurator/dinglehopper/ocr_files.py", line 79, in page_extract
    raise NotImplementedError
NotImplementedError
  • Make this a warning and read UnorderedGroups in XML order
  • Check what other tools do with this
  • Find a proper solution (Hard!)
@mikegerber mikegerber self-assigned this Apr 15, 2021
@mikegerber mikegerber added the enhancement New feature or request label Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant