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

SelectFS.coveredBy not selecting annotations with exact same bounds as annotation argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.1SDK
    • 3.2.0SDK
    • uimaj
    • None

    Description

      Invoking jCas.select(Annotation.class).coveredBy(annotation), where annotation is a direct subtype of Annotation, does not return all expected annotations when compared to JCasUtil.selectCovered. In the attached unit test all annotations that have the exact same bounds as annotation are not selected, only those that are completely enclosed get selected (begin > annotation.getBegin() and end < annotation.getEnd()). JCasUtil.selectCovered includes the missing annotations. Switching type priorities on didn't make a difference, and we don't use type priorities for the moment, so we rather avoid this.

      selectfs-issue.zip

       

      Attachments

        1. selectfs-issue.zip
          15 kB
          Mario Juric

        Issue Links

          Activity

            People

              rec Richard Eckart de Castilho
              mjuric Mario Juric
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: