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

Ruta: RutaLiteralMatcher throws exception for special choice of string

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.0ruta
    • Fix Version/s: 2.8.1ruta, 3.0.1ruta
    • Component/s: Ruta
    • Labels:
      None

      Description

      For certain combinations of document text and RuleElementLiteral in the script, method getAnnotation of class RutaLiteralMatcher throws a NullPointerException.  This seems to be the case whenever the used string is a postfix or infix of a word in the document, but itself doesn't occur.

      Example

      Script

       

      DECLARE testType;
      "est" {-> testType};
      "est te"{-> testType};
      

      Document

       

      test test

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: