On 23. Oct 2020, at 11:18, Viorel Morari <[email protected]> wrote: > > Translating the adjacency in angles onto numeric intervals, it seems logical > to me that two annotations X and Y, where X: [0-3] and Y: [3-5], are adjacent > (X-is-left-adjacent-to-Y) and not overlapping. > In the continuous space of number intervals, the two annotations would have a > "common side" at 3.0(0) and thereby not overlapping. The same can be applied > for zero-width annotations, i.e. the zero-width annotation starts and ends at > 3.0(0). > > However, since the index in CAS is discrete, I tend to be with Peter on this > one and say that given the case X: [0-3] Y: [3-3], the following applies: > X-is-overlapping-with-Y, X-is-covering-by-Y, X-is-left-of-Y, > X-is-left-adjacent-to-Y.
Note that the end offset of an annotation points to the first character *after* the annotated text: "This is a test" - 11111 -012345678901234 Annotation [ 0- 4] = "This" Annotation [10-14] = "test" So if you consider this in the discrete case, then the "end" is actually not even part of the discrete interval anymore. -- Richard
