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

Removing an annotation inside a BLOCK only takes effect outside the block

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0ruta
    • 3.2.0ruta
    • Ruta
    • None
    • Environment:

      • SO: macOS 10.14.6
      • AdoptOpenJDK 1.8.0_252-b09
      • uimaj-core 3.2.0
      • ruta-core 3.1.0

    Description

      The following snippet prints "Not removed yet!" in Ruta 3.1.0:

       

      BLOCK(SoftRemove) MyType.feat=="foo"{} {
          t:MyType.feat=="foo"{-> UNMARK(t)};
          t:MyType.feat=="foo"{-> LOG("Not removed yet!")}; 
      }
      // Now it's removed
      

       

      It works well (and does not print anything) in Ruta 3.0.1 and Ruta 2.x.

       

       

      Attachments

        Issue Links

          Activity

            People

              pkluegl Peter Klügl
              benisantos Beni Santos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: