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

Ruta: Condition AFTER does not respect BLOCK window

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.1ruta, 3.0.1ruta
    • 2.9.0ruta, 3.1.0ruta
    • Ruta
    • None

    Description

      As I understand the guide on this subject, AFTER, and any other such condition, should limit its search for annotations of the passed types to the window defined by the current scope. Hence, if used within a BLOCK, AFTER should disregard any annotations before (and after, for that matter) the window given by the matched annotation in the block's head. However, the AnnotationIndex iterator used in AfterCondition.check to find annotations of the given type is apparently not meant to be used in that way (it probably also ignores type visibility, but I didn't check this).
      Example:

      • Text (a bit strange, I know...):
        This is just a 6 6 demo file. Now AND then... We'll see....,
        
         Mouse House!? You can drag and drop your own Files (:) to the editor in the middle
        of the page ().
        
      • Script:
        DECLARE NamedEntity, Stwr, IEEntity, Paragraph;
        
        "demo"{-> NamedEntity};
        ("Mouse" # "drag") {-> Paragraph};
        
        // test within block
        BLOCK (after) Paragraph{} {
            CW {AFTER(NamedEntity) -> Stwr};
        }
        
      • Marked annotations (of type Stwr only):
        Mouse, House, You
        
      • Expected (of type Stwr):
        <None>
        

      Regards,
      Michael

      Attachments

        Issue Links

          Activity

            People

              pkluegl Peter Klügl
              Michael Stenger Michael Stenger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: