You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (JIRA)" <de...@uima.apache.org> on 2012/08/03 16:12:03 UTC

[jira] [Commented] (UIMA-2450) MARK using Question Greedy quantifier

    [ https://issues.apache.org/jira/browse/UIMA-2450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428106#comment-13428106 ] 

Peter Klügl commented on UIMA-2450:
-----------------------------------

Yes, this is a bug. When there is no match for the last optional rule element, the target span for the new annotation is not correctly calculated.
                
> MARK using Question Greedy quantifier
> -------------------------------------
>
>                 Key: UIMA-2450
>                 URL: https://issues.apache.org/jira/browse/UIMA-2450
>             Project: UIMA
>          Issue Type: Bug
>          Components: TextMarker
>            Reporter: Philipp Daumke
>            Priority: Minor
>
> Hi Peter,
> guess you have the following file:
> 1-0-0
> 1 0 0
> the following rule works fine for both:
> NUM "-"? NUM "-"? NUM{->MARK(Freq, 1, 5)};
> the following rule also seems to work fine according to the Explain function, but only the first number ("1") is annotated in both lines.
> NUM "-"? NUM "-"? NUM "-"?{->MARK(MedicationFreq, 1, 6)};
> It seems that the expression doesn't like the last question mark before the "{->MARK"
> Regards
> Philipp

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira