uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl <peter.klu...@averbis.com>
Subject Re: Issue while applying COUNT condition in UIMA RUTA
Date Fri, 06 Jul 2018 07:40:18 GMT
Hi,


thanks you for reporting this. This is a severe bug and I will fix it as
soon as possible.


Best,


Peter


Am 05.07.2018 um 08:00 schrieb amyjacksonkat@gmail.com:
> I used COUNT Condition to find the number of punctuations in an annotation.But I didn't
received the expected output.
>
>                  DECLARE Sentence(INT pmcount);
>                  Conflicts of interest"->Sentence;
>
>                  DECLARE SentenceLastToken;
>                          Sentence{-PARTOF(SentenceLastToken)->MARKLAST(SentenceLastToken)};
>                  INT Pmcount=0; 
>                  
>                  Sentence->{ANY+?{->SHIFT(Sentence,1,1,true)} SentenceLastToken{PARTOF(PM)};};
>                  Sentence{COUNT(PM,Pmcount)->Sentence.pmcount=Pmcount};
>
> **Sample Input:**
>    
>      Conflicts of interest.
>
> **Expected Output:**
>
>       Conflicts of interest
>            pmcount:0
>          
>     
> **Received Output:**
>
>       Conflicts of interest
>            pmcount:1
>          
> I'm facing this problem only if there is any PM after the Annotation value.
>     
>       

-- 
Peter Klügl
R&D Text Mining/Machine Learning

Averbis GmbH
Tennenbacher Str. 11
79106 Freiburg
Germany

Fon: +49 761 708 394 0
Fax: +49 761 708 394 10
Email: peter.kluegl@averbis.com
Web: https://averbis.com

Headquarters: Freiburg im Breisgau
Register Court: Amtsgericht Freiburg im Breisgau, HRB 701080
Managing Directors: Dr. med. Philipp Daumke, Dr. Kornél Markó


Mime
View raw message