Re: UIMA Ruta into jar?

2014-10-23 Thread Alexandre Patry
On 14-10-23 02:10 AM, Richard Eckart de Castilho wrote: On 23.10.2014, at 00:39, Piyush Paliwal piyushpaliwa...@gmail.com wrote: As an example, I wish to import the following types from TypeSystem.xml descriptor which also resides in same folder as script (both files now in Java project).

Re: UIMA Ruta into jar?

2014-10-23 Thread Alexandre Patry
On 14-10-23 09:40 AM, Piyush Paliwal wrote: Hi Richard, its seems to work now. Thanks. As I was only at testing stage, I forgot to add other descriptors (OpenNlpTagger, etc) prior to that Ruta descriptor in pipeline. Those were needed so that the CAS can find all types. Though, its a little

Re: UIMA Ruta into jar?

2014-10-22 Thread Alexandre Patry
Hi Piyush, A while ago, I wrote a blog post on how to package a RUTA script with maven: http://textjuicer.com/blog/2013/09/08/using-ruta-in-a-maven-project/ Even if you do not use maven, it should give you an idea on the files to distribute in your jars. Hope this help, Alexandre On

Re: sendCAS is slow

2014-09-24 Thread Alexandre Patry
Did you get an error message or a stack trace? On 24/09/2014 09:38, xym210 wrote: it doesn't work, when I deploy the collectionReader and the AE colocated, it doesn't work either, is there something i misunderstood, thanks. -- 发自 Android 网易邮箱 在2014年09月23日 20:57, Alexandre Patry

Re: sendCAS is slow

2014-09-24 Thread Alexandre Patry
+state:results On 24/09/2014 09:49, xym210 wrote: no, everything seems has worked right, when I deploy two collection reader instances, the processing speed improved -- 发自 Android 网易邮箱 在2014年09月24日 21:44, Alexandre Patry mailto:alexandre.pa...@keatext.com写 道: Did you get an error message

Re: sendCAS is slow

2014-09-23 Thread Alexandre Patry
. -- Alexandre Patry, Ph.D Chercheur Principal / Principal Researcher http://KeaText.com

Re: RUTA: case insensitive regex rule?

2014-08-29 Thread Alexandre Patry
-- Alexandre Patry, Ph.D Chercheur Principal / Principal Researcher http://KeaText.com

Re: Ruta - best practices for unit tests?

2014-08-18 Thread Alexandre Patry
. And uimaFIT is an excellent tool for that (http://uima.apache.org/uimafit.html). Hope this help, Alexandre -- Alexandre Patry, Ph.D Chercheur / Researcher http://KeaText.com

Loading a resource from the classpath

2014-08-07 Thread Alexandre Patry
a CustomResourceSpecifier? Thanks! Alexandre -- Alexandre Patry, Ph.D Chercheur Principal / Principal Researcher http://KeaText.com

Re: Loading a resource from the classpath

2014-08-07 Thread Alexandre Patry
Well, the error was on the other side of the screen. This works perfectly well with fileUrl, I only had a typo in my path. On 07/08/2014 11:37, Alexandre Patry wrote: Hi, I would like to locate a resource in the classpath, something along the lines of: externalResource

Re: dinamically type system creation

2014-05-13 Thread Alexandre Patry
be found if you create it using: CAS aCAS = CasCreationUtils.createCas(typeSystemDescription, null, null); Hope this help, Alexandre -- Alexandre Patry, Ph.D Chercheur / Researcher http://KeaText.com

Re: RandomAccessFile problem in UIMA

2014-05-03 Thread Alexandre Patry
used maven, may I ask which maven Eclipse plugin you use? Thanks again for your help! Regards, Debbie -Original Message- From: Alexandre Patry [mailto:alexandre.pa...@keatext.com] Sent: Saturday, 3 May 2014 12:13 AM To: user@uima.apache.org Subject: Re: RandomAccessFile problem in UIMA

Re: RandomAccessFile problem in UIMA

2014-05-02 Thread Alexandre Patry
-- Alexandre Patry, Ph.D Chercheur / Researcher http://KeaText.com

Re: UIMA Ruta 2.1.0 Issues

2013-12-17 Thread Alexandre Patry
: (SPECIAL ALL*? SPECIAL) {- MARK(TMP_GenericAllSTAR)}; Hope this help, Alexandre -- Alexandre Patry, Ph.D Chercheur / Researcher http://KeaText.com

Re: Macros in Ruta? - How to make long scripts short?

2013-12-06 Thread Alexandre Patry
. The compromise on performance is not the same though. It consumes more memory, but searching for N or V does not require to scan all part-of-speeches annotations anymore. Hope this help, Alexandre -- Alexandre Patry, Ph.D Chercheur / Researcher http://KeaText.com

Re: Problem writing ruta extensions

2013-12-05 Thread Alexandre Patry
your toy extension working, but for small lists I like to use regular expressions where case insensitiveness is free: W{REGEXP((?i)january|february|march|...|december) - MARK(Month)} Regards, Alexandre -- Alexandre Patry, Ph.D Chercheur / Researcher http://KeaText.com

[ruta] How to efficiently delete an annotation only if it appears within the N first token of a document?

2013-08-28 Thread Alexandre Patry
];// Appends the 49 following tokens ToDelete{POSITION(Header, 1) - UNMARK(ToDelete)};// Delete the first ToDelete if it is within the header These rules work as expected but they are *really* slow. Is there a faster way to achieve that? Thanks, Alexandre -- Alexandre Patry, Ph.D

Re: [ruta] How to efficiently delete an annotation only if it appears within the N first token of a document?

2013-08-28 Thread Alexandre Patry
On 2013-08-28 12:19, Peter Klügl wrote: On 28.08.2013 18:17, Alexandre Patry wrote: I will be happy to test drive MARKFIRST when it will be in trunk. It's already in the trunk. If you want, then I can also think of something that avoid the visibility problem. I was able to make it work in my

Re: [ruta] How to efficiently delete an annotation only if it appears within the N first token of a document?

2013-08-28 Thread Alexandre Patry
On 2013-08-28 15:20, Peter Klügl wrote: Am 28.08.2013 20:33, schrieb Alexandre Patry: On 2013-08-28 12:19, Peter Klügl wrote: On 28.08.2013 18:17, Alexandre Patry wrote: I will be happy to test drive MARKFIRST when it will be in trunk. It's already in the trunk. If you want, then I can also

Re: Using JCasGen outside eclipse

2012-10-12 Thread Alexandre Patry
this help, Alexandre -- Alexandre Patry Ingénieur-Chercheur http://KeaText.com Transformez vos documents en outils de décision Turn your documents into decision tools