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

Fix sorting of annotations without begin and end #15

Open
jcklie opened this issue Oct 19, 2018 · 1 comment
Open

Fix sorting of annotations without begin and end #15

jcklie opened this issue Oct 19, 2018 · 1 comment

Comments

@jcklie
Copy link
Collaborator

jcklie commented Oct 19, 2018

Right now, all annotations are stored in a sorted list ordered by (begin, end). This enables us to use binary search when looking for covered annotations. There is one list for each annotation type. Some annotations do not have begin or end, these are currently hacked to be sortable by using (sys.maxsize, sys.maxsize) as a key. It should be made so that only annotations are put into sorted lists that have (begin, end), the others should use an ordinary list. These should also be selectable with cas.select.

@reckart
Copy link
Member

reckart commented Oct 19, 2018

Annotations that do not have begin/end are called "feature structures" ;)

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

2 participants