You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Vijay Kumar Reddy <vi...@gmail.com> on 2018/07/13 15:12:06 UTC

Help - Text Extraction

Hi,

I am using Apache Ruta to extract the data from the email body. I have to
apply the Ruta script on the email content to match the keyword and extract
the values from that. Below is the sample email content,

Name: TestName
DOB: 20/10/1986
Ref.Num: 123456

I am looking for sample script which extracts the Name, DOB and Ref.Num
values from the email content. Can someone help in this pls.
-- 




*@*Best Regards,
       Jay

Re: Help - Text Extraction

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


reasonable rules largely depend on the greater use case and on the
complexity of the context. You could start with something trivial like


DECLARE Keyword, Value;
"Name|DOB|Ref\\.Num" -> Keyword;
RETAINTYPE(BREAK);
Keyword COLON #{-> Value} BREAK;


Best,

Peter



Am 13.07.2018 um 17:12 schrieb Vijay Kumar Reddy:
> Hi,
>
> I am using Apache Ruta to extract the data from the email body. I have to
> apply the Ruta script on the email content to match the keyword and extract
> the values from that. Below is the sample email content,
>
> Name: TestName
> DOB: 20/10/1986
> Ref.Num: 123456
>
> I am looking for sample script which extracts the Name, DOB and Ref.Num
> values from the email content. Can someone help in this pls.

-- 
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ó