Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4392

subiterator edge case needs correction - begin value with multiple instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0SDK
    • None
    • None

    Description

      The definition of a subiterator requires that the FSs returned by strictly greater than the bounding FS (greater-than is with respect to the sort order for Annotations). The current implementation makes two mistakes - it uses the "equal" method on the FeatureStructure - which returns true only for the indentical FS (same heap address in same heap), and doesn't allow for multiple occurances of annotation-index-ordering-equals items. For example, if there were multiple "Tokens" each of which had different non-indexed field "lemma" which were set to different values, and one of these FSs was used as the bounds, then the iterator incorrectly currently skips over that one but only if it happens to be the first one in the sort order, and never skips the others which would also compare equal (using the annotator comparator). The correct behavior is to skip over all until an item is found which would compare as not-equal-using-standard-annotator comparer.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: