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

Anchor overlap prevention #2403

Open
adammertel opened this issue Oct 23, 2024 · 0 comments
Open

Anchor overlap prevention #2403

adammertel opened this issue Oct 23, 2024 · 0 comments
Milestone

Comments

@adammertel
Copy link
Contributor

adammertel commented Oct 23, 2024

There should be some check of such unwelcome overlap only because of text selection precision. I.e. the anchor of a child should attach inside the parent if text selection leads all the way up to the end of parent, if I'm being clear. I.e. it is allowed, but the Annotator should not contribute to creating these situations just because they are allowed.

the same issue applies to all anchors, not only T anchors. And it also applies to the anchor beginning, to create overlap only when absolutely requested - in case of same character token, Annotator should attach appropriately - inside if start anchor of entity2 is after the start anchor of entity1 (creating "subordinate/child anchor", outside if start anchor of entity2 is before the start of entity2 (creating "superordinate/parent" anchor).

@adammertel adammertel added this to the 1.4.2 milestone Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant