Peter Klügl created UIMA-2933:
---------------------------------

             Summary: Rute type matcher selects wrong annoation with length 0
                 Key: UIMA-2933
                 URL: https://issues.apache.org/jira/browse/UIMA-2933
             Project: UIMA
          Issue Type: Bug
          Components: ruta
    Affects Versions: 2.0.1ruta
            Reporter: Peter Klügl
            Assignee: Peter Klügl
             Fix For: 2.0.2ruta


Rute type matcher selects wrong annoation with length 0. It is acutally the 
correct "next" annotations in the index, but not for the rule element matching.

Armin Wegner reported:
{noformat}
DECLARE Date;
Document{->RETAINTYPE(BREAK, SPACE)};
NUM{REGEXP("\\d\\d")->MARK(Date, 1, 2)} PERIOD;
{noformat}
on the input text
{noformat}
12. Mai 1803
{noformat}
I didn't use SourceDocumentInformation in the rule. I was just in the way. The 
first token with RutaBasic was NUM(0, 2), that is "12", and the second token 
was SourceDocumentInformation(0, 0). So the rule failed which is correct.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to