Concept Mapper in code

2013-05-21 Thread harshal patni
Hello Everyone, I am currently writing ConceptMapper in code (not using XML files). Basically I am definitely AnalysisEngineDescriptions and TypeSystem Description in java code. I create the following 2 parameters using ConfigurationParameter class. 1. AttributeList 2.

Ruta 2.0.2-SNAPSHOT - Eclipse Plugin Installation

2013-05-21 Thread Armin.Wegner
Hi! I've checkout Ruta 2.0.2-SNAPSHOT with svn checkout https://svn.apache.org/repos/asf/uima/sandbox/ruta/trunk and build it succesfully with mvn clean install. Now, how to install the Eclipse plugins? Is there a local reposity or update site for Eclipse? Or, which files need to be copied

Ruta - Token Order

2013-05-21 Thread Armin.Wegner
Hi, In Ruta 2.0.2-SNAPSHOT a token with begin offset 0 and end offset 2 comes before a token with begin offset 0 and end offset 0. The token order is not as I expected. Thus in my case, SourceDocumentAnnotation was the second token in the token sequence and the rule didn't match. It took me

Re: Ruta 2.0.2-SNAPSHOT - Eclipse Plugin Installation

2013-05-21 Thread Peter Klügl
Hi, On 21.05.2013 09:18, armin.weg...@bka.bund.de wrote: Hi! I've checkout Ruta 2.0.2-SNAPSHOT with svn checkout https://svn.apache.org/repos/asf/uima/sandbox/ruta/trunk and build it succesfully with mvn clean install. Now, how to install the Eclipse plugins? Is there a local reposity

Re: Ruta - Token Order

2013-05-21 Thread Peter Klügl
Hi, On 21.05.2013 12:47, armin.weg...@bka.bund.de wrote: Hi, In Ruta 2.0.2-SNAPSHOT a token with begin offset 0 and end offset 2 comes before a token with begin offset 0 and end offset 0. The token order is not as I expected. Thus in my case, SourceDocumentAnnotation was the second token

Re: Changing the original text based on annotations

2013-05-21 Thread Peter Klügl
On 20.05.2013 23:01, GATE User wrote: Thanks Richard and Peter: What I want to be able to do is, when the xml is returned, a program should then be able to find the corrected message and use that for future operations. Will using views allow this? Is it simply easier to just make a new

AW: Ruta - Token Order

2013-05-21 Thread Armin.Wegner
Hi Peter, I think that the rule doesn't matter. But I tried to find calender dates. To find out what was going wrong I reduced the original more complex rule to DECLARE Date; Document{-RETAINTYPE(BREAK, SPACE)}; NUM{REGEXP(\\d\\d)-MARK(Date, 1, 2)} PERIOD; on the input text 12. Mai 1803 I

Ruta - MARKFAST

2013-05-21 Thread Armin.Wegner
Hello! Is there any possibility to match strings like nC. v. Chr. with MARKFAST? Cheers, Armin

Re: Ruta - Token Order

2013-05-21 Thread Thilo Goetz
On 05/21/2013 01:37 PM, Peter Klügl wrote: Hi, On 21.05.2013 12:47, armin.weg...@bka.bund.de wrote: Hi, In Ruta 2.0.2-SNAPSHOT a token with begin offset 0 and end offset 2 comes before a token with begin offset 0 and end offset 0. The token order is not as I expected. Thus in my case,

Re: Aggregate Delegates and Remote Services

2013-05-21 Thread GATE User
Hello Eddie: If I am understand this correctly, I would add the custom resource specifier under the resource manager configuration of the aggregate AE descriptor.  If that is the case, I would then make an annotator that would get that resource, build a cas, call the resource, wait for a

Re: AW: Ruta - Token Order

2013-05-21 Thread Peter Klügl
Hi, On 21.05.2013 13:52, Peter Klügl wrote: Hi, On 21.05.2013 13:49, armin.weg...@bka.bund.de wrote: Hi Peter, I think that the rule doesn't matter. But I tried to find calender dates. To find out what was going wrong I reduced the original more complex rule to DECLARE Date;

Re: Ruta - MARKFAST

2013-05-21 Thread Peter Klügl
Hi, On 21.05.2013 15:49, armin.weg...@bka.bund.de wrote: Hello! Is there any possibility to match strings like nC. v. Chr. with MARKFAST? Yes. Did you observe any problems? I just tested it with: Wordlist: nC. v. Chr. Input document: nC. v. Chr. n C . v . Chr. Script: PACKAGE

Re: Aggregate Delegates and Remote Services

2013-05-21 Thread Eddie Epstein
If I am understand this correctly, I would add the custom resource specifier under the resource manager configuration of the aggregate AE descriptor. If that is the case, I would then make an annotator that would get that resource, build a cas, call the resource, wait for a response, etc...

Re: Concept Mapper in code

2013-05-21 Thread Renaud Richardet
Hi Harshal, Have you tried UimaFit? I think it would be a better option, if you do not want to use XML descriptors. Hope that helps, Renaud On Tue, May 21, 2013 at 8:49 AM, harshal patni patni.hars...@gmail.comwrote: Hello Everyone, I am currently writing ConceptMapper in

Re: Concept Mapper in code

2013-05-21 Thread Himanshu Gahlot
Use setMultiValued()http://uima.apache.org/downloads/releaseDocs/2.3.0-incubating/docs/api/org/apache/uima/resource/metadata/ConfigurationParameter.html#setMultiValued%28boolean%29. So, p1.setMultiValued() should make this config param accept multiple String values. Himanshu On Tue, May 21,

Re: Concept Mapper in code

2013-05-21 Thread harshal patni
Hello Himanshu, I tried setting the setMultivalues(true). The problem is the following - I use setType (String). I need to do this coz else it takes it as null. But as soon as we setType(String) it throws a cast error saying string cannot be cast to a String array. If you