Open tenzin3 opened 1 day ago
That is intended behaviour.
If you want to return annotations that may be anywhere in the text selection boundary then you should use:
textselection.related_text(TextSelectionOperator.embeds()).annotations()
Note that this will not return the textselection itself, so you might
want to also do textselection.annotations()
to capture those too.
@proycon . I recently face an issue retrieving
annotations
where its span are included in an particularTextSelection
span. The api methods is retrieving annotations only if its offset is same to offset that of text selection. But i believe apiTextSelection.annotations
method also intends to returns annotations where its offset comes in between the text selection boundary.