You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Martin Toepfer (JIRA)" <de...@uima.apache.org> on 2014/02/06 14:32:11 UTC

[jira] [Updated] (UIMA-3598) Ruta: matching with manual anchor

     [ https://issues.apache.org/jira/browse/UIMA-3598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Toepfer updated UIMA-3598:
---------------------------------

    Description: 
text span:
"0.3-0.7"

rules:
{quote}
DECLARE Number;
DECLARE NumberExpression;
NUM {-PARTOF(Number)} ((COMMA | PERIOD) NUM)? {->MARK(Number,1,2)};
((Number? ("<" | ">" | "=" | "==" | "-" | "+"))? {-PARTOF(NumberExpression)} @Number) {-PARTOF(NumberExpression)->MARK(NumberExpression)};
{quote}

result:
-0.7 annotated as number expression
expected:
0.3 as number expression
[or 0.3-0.7 if manual anchoring tries to match at the end of the document first... depends on rule inference]


  was:
text span:
"0.3-0.7"

rules:
DECLARE Number;
DECLARE NumberExpression;
NUM {-PARTOF(Number)} ((COMMA | PERIOD) NUM)? {->MARK(Number,1,2)};
((Number? ("<" | ">" | "=" | "==" | "-" | "+"))? {-PARTOF(NumberExpression)} @Number) {-PARTOF(NumberExpression)->MARK(NumberExpression)};

result:
-0.7 annotated as number expression
expected:
0.3 as number expression
[or 0.3-0.7 if manual anchoring tries to match at the end of the document first... depends on rule inference]



> Ruta: matching with manual anchor
> ---------------------------------
>
>                 Key: UIMA-3598
>                 URL: https://issues.apache.org/jira/browse/UIMA-3598
>             Project: UIMA
>          Issue Type: Bug
>          Components: ruta
>            Reporter: Martin Toepfer
>            Assignee: Peter Klügl
>
> text span:
> "0.3-0.7"
> rules:
> {quote}
> DECLARE Number;
> DECLARE NumberExpression;
> NUM {-PARTOF(Number)} ((COMMA | PERIOD) NUM)? {->MARK(Number,1,2)};
> ((Number? ("<" | ">" | "=" | "==" | "-" | "+"))? {-PARTOF(NumberExpression)} @Number) {-PARTOF(NumberExpression)->MARK(NumberExpression)};
> {quote}
> result:
> -0.7 annotated as number expression
> expected:
> 0.3 as number expression
> [or 0.3-0.7 if manual anchoring tries to match at the end of the document first... depends on rule inference]



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)