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

Action FILL only considers first annotation of given type

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      Hey!

      I think there is a minor bug in the implementation of action FILL, lines 79-86 of FillAction.java: Even when multiple annotations of the given type are found within/overlapping the range of the matched annotation, only one is modified here.

      Consider the following script:

      DECLARE SomeType (STRING s);
      (CW W){-> SomeType, SomeType};
      CW{-> FILL(SomeType, "s" = "test")}
      

      on the the input text:

      This is a test.
      

       Here, FILL will only assign the string value to one of the newly created SomeType annotations.

      Some clarification would be great. Thanks, Michael.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment