You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Anhua Xu <xu...@163.com> on 2017/06/14 07:50:41 UTC

How to identify a sentence in UIMA ruta ?

Hi, Everyone


I'm not if such question should be asked in this mailing list. My question is like this:


I learnt to identify a sentence in uima ruta like this:


ChinesePunc #{-> MARK(MySentence)} ChinesePunc;


But it seems that It cannot identify the first sentence in a paragraph.  how to do this in uima ruta ?


thanks 
Anhua

Re: How to identify a sentence in UIMA ruta ?

Posted by Peter Klügl <pe...@averbis.com>.
Hi,


you are welcome to ask such questions here.


I'd recommend using two rules here:


ChinesePunc #{-> MARK(MySentence)} ChinesePunc;

#{-> MARK(MySentence)} ChinesePunc;


The second rule simply matches from the beginning until the first
occurrence of ChinesePunc.


You can do that also with one single rule, but the runtime performance
overhead of these two rules should be minimal.



Best,


Peter



Am 14.06.2017 um 09:50 schrieb Anhua Xu:
> Hi, Everyone
>
>
> I'm not if such question should be asked in this mailing list. My question is like this:
>
>
> I learnt to identify a sentence in uima ruta like this:
>
>
> ChinesePunc #{-> MARK(MySentence)} ChinesePunc;
>
>
> But it seems that It cannot identify the first sentence in a paragraph.  how to do this in uima ruta ?
>
>
> thanks 
> Anhua