uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl (JIRA) <...@uima.apache.org>
Subject [jira] [Updated] (UIMA-5437) Ruta: window restriction in block broken
Date Thu, 06 Jul 2017 15:55:00 GMT

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

Peter Klügl updated UIMA-5437:
------------------------------
    Description: 
{noformat}
STRING s;
BOOLEAN a ;

// This is not working:
BLOCK(forEACH1) Lemma{} { // Matches a lot
     Lemma{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 0
     Lemma{a ->Test1};
}

// This is not working:
BLOCK(forEACH2) Lemma{} { // Matches a lot
Lemma{contains(Lemma.ct, "er") -> MARK(Test2)}; // Matches 0
}

// This is working:
Lemma{contains(Lemma.ct, "er") -> MARK(Test3)}; // Matches 1

// This is working:
BLOCK(forEACH4) Lemma{}{
     W{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1
     W{a ->Test4};
}

// This is also working:
BLOCK(forEACH5) Lemma{}{
    Document{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1
    Document{a ->Test5};
} 
{noformat}

  was:
STRING s;
BOOLEAN a ;

// This is not working:
BLOCK(forEACH1) Lemma{} { // Matches a lot
     Lemma{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 0
     Lemma{a ->Test1};
}

// This is not working:
BLOCK(forEACH2) Lemma{} { // Matches a lot
Lemma{contains(Lemma.ct, "er") -> MARK(Test2)}; // Matches 0
}

// This is working:
Lemma{contains(Lemma.ct, "er") -> MARK(Test3)}; // Matches 1

// This is working:
BLOCK(forEACH4) Lemma{}{
     W{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1
     W{a ->Test4};
}

// This is also working:
BLOCK(forEACH5) Lemma{}{
    Document{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1
    Document{a ->Test5};
} 


> Ruta: window restriction in block broken
> ----------------------------------------
>
>                 Key: UIMA-5437
>                 URL: https://issues.apache.org/jira/browse/UIMA-5437
>             Project: UIMA
>          Issue Type: Bug
>          Components: Ruta
>    Affects Versions: 2.6.0ruta
>            Reporter: Peter Klügl
>            Assignee: Peter Klügl
>             Fix For: 2.6.1ruta
>
>
> {noformat}
> STRING s;
> BOOLEAN a ;
> // This is not working:
> BLOCK(forEACH1) Lemma{} { // Matches a lot
>      Lemma{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 0
>      Lemma{a ->Test1};
> }
> // This is not working:
> BLOCK(forEACH2) Lemma{} { // Matches a lot
> Lemma{contains(Lemma.ct, "er") -> MARK(Test2)}; // Matches 0
> }
> // This is working:
> Lemma{contains(Lemma.ct, "er") -> MARK(Test3)}; // Matches 1
> // This is working:
> BLOCK(forEACH4) Lemma{}{
>      W{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1
>      W{a ->Test4};
> }
> // This is also working:
> BLOCK(forEACH5) Lemma{}{
>     Document{->MATCHEDTEXT(s), ASSIGN(a,contains(s,"er"))}; // Matches 1
>     Document{a ->Test5};
> } 
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message