Re: Iterating over all annotation types of a token

2012-02-21 Thread Himanshu Gahlot
Thanks Marshall, this would work for me ! Himanshu Gahlot Software Engineer T 415.344.1336 235 2nd St, San Francisco, CA 94105 [image: Cbs] On Tue, Feb 21, 2012 at 11:09 AM, Marshall Schor wrote: > How about something like: > > First, get an iterator over tokens, using the base AnnotationInd

Re: Iterating over all annotation types of a token

2012-02-21 Thread Marshall Schor
How about something like: First, get an iterator over tokens, using the base AnnotationIndex (e.g. index = aCAS.getAnnotationIndex(your-token-type). Then, I presume you will have some kind of a loop that iterates some inner code for each token. In the inner code, you want to have an iterato

Re: InlineXMLCasConsumer fails depending on locale

2012-02-21 Thread Jens Grivolla
On 02/21/2012 05:15 PM, Thilo Goetz wrote: On 21/02/12 16:15, Jens Grivolla wrote: On 02/21/2012 04:08 PM, Thilo Goetz wrote: On 21/02/12 15:59, Jens Grivolla wrote: it appears that InlineXMLCasConsumer depends on the system locale for some internal transformations. The output appears to be wr

Re: InlineXMLCasConsumer fails depending on locale

2012-02-21 Thread Thilo Goetz
On 21/02/12 16:15, Jens Grivolla wrote: > On 02/21/2012 04:08 PM, Thilo Goetz wrote: >> On 21/02/12 15:59, Jens Grivolla wrote: >>> it appears that InlineXMLCasConsumer depends on the system locale for >>> some internal transformations. The output appears to be written in UTF8 >>> (outStream.write(

Re: UIMACpp - how to check annotator's dlopen

2012-02-21 Thread Sylvain Surcin
Hi Eddie, No, in fact, as I told Bhavani in a separate message, the problem is specific to Mac Os X. This has to do with the "install name" embedded in the libuima.dylib during construction by the Makefile, which is /install/lib/libuima.dylib. As well, the makefile generating the C++ annotator sta

Re: InlineXMLCasConsumer fails depending on locale

2012-02-21 Thread Jens Grivolla
On 02/21/2012 04:08 PM, Thilo Goetz wrote: On 21/02/12 15:59, Jens Grivolla wrote: it appears that InlineXMLCasConsumer depends on the system locale for some internal transformations. The output appears to be written in UTF8 (outStream.write(xmlAnnotations.getBytes("UTF-8"));) but when used on a

Re: InlineXMLCasConsumer fails depending on locale

2012-02-21 Thread Thilo Goetz
On 21/02/12 15:59, Jens Grivolla wrote: > Hi, > > it appears that InlineXMLCasConsumer depends on the system locale for > some internal transformations. The output appears to be written in UTF8 > (outStream.write(xmlAnnotations.getBytes("UTF-8"));) but when used on a > machine with a locale of ASC

InlineXMLCasConsumer fails depending on locale

2012-02-21 Thread Jens Grivolla
Hi, it appears that InlineXMLCasConsumer depends on the system locale for some internal transformations. The output appears to be written in UTF8 (outStream.write(xmlAnnotations.getBytes("UTF-8"));) but when used on a machine with a locale of ASCII all accented characters get broken. I suspe

Re: UIMACpp - how to check annotator's dlopen

2012-02-21 Thread Eddie Epstein
This error is coming from libuima, which was successfully loaded by the JVM, given -Djava.library.path. You're sure that the [appropriate] LD_LIBRARY_PATH is set correctly for libuima? As a test put the annotator library in some standard place, like /usr/lib. There's no issue with 32 vs 64 bit libr