Skip to content

utils.get_nth_textequiv: respect @index#32

Merged
kba merged 2 commits intomasterfrom
textequiv-index
Sep 13, 2022
Merged

utils.get_nth_textequiv: respect @index#32
kba merged 2 commits intomasterfrom
textequiv-index

Conversation

@bertsky
Copy link
Copy Markdown
Collaborator

@bertsky bertsky commented Sep 12, 2022

Fix #31

@bertsky bertsky requested a review from kba September 12, 2022 13:07
@bertsky
Copy link
Copy Markdown
Collaborator Author

bertsky commented Sep 12, 2022

Note: I also had to change the --textequiv-fallback-strategy default from last to first, since

  • the default --textequiv-index of zero now means @index="0", not position zero, so if no @index is available we would need the fallback
  • OCR-D processors always consume the first by default, so it's unexpected to see last as default here

@kba kba merged commit be1cfd1 into master Sep 13, 2022
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 this pull request may close these issues.

textequiv_index is not @index but element position

2 participants