[ANNOUNCE] Apache UIMA Java SDK 2.4.0 released

2011-12-07 Thread Marshall Schor
The Apache UIMA team is pleased to announce the release of the Apache UIMA Java SDK, version 2.4.0. Apache UIMA is a component architecture and framework for the analysis of unstructured content like text, video and audio data. This release only includes the UIMA Java SDK, and does not yet have

Re: AW: Annotation/Feature creation, changing types

2011-12-07 Thread Tomas By
Thilo; Armin, Thanks, this looks good. Will try that. I seem to remember trying to use cas.getTypeSystem but no being successful for a reason I cannot now recall. createAnnotation OTOH is precisely what I spent a good while looking for in the docs and not finding. /Tomas On Wed, December 7, 2

Re: AW: Annotation/Feature creation, changing types

2011-12-07 Thread Thilo Goetz
Forgot to add a link to the docs: http://uima.apache.org/d/uimaj-2.3.1/references.html#ugr.ref.cas On 07/12/11 14:07, Thilo Goetz wrote: > On 07/12/11 07:44, armin.weg...@bka.bund.de wrote: >> Hello Tomas, >> >> try this in your annotator: >> >> // cas is a CAS, not a JCas >> final Type type = cas

Re: AW: Annotation/Feature creation, changing types

2011-12-07 Thread Thilo Goetz
On 07/12/11 07:44, armin.weg...@bka.bund.de wrote: > Hello Tomas, > > try this in your annotator: > > // cas is a CAS, not a JCas > final Type type = cas.getTypeSystem().getType(X); > // This is your X, a fully qualified name for one of the types in your type > system. > // If type equals null,

Re: AW: Annotation/Feature creation, changing types

2011-12-07 Thread Richard Eckart de Castilho
You cannot modify the type system of a CAS once the CAS has been created. For that reason, UIMA creates a merged type system of all types referenced in any pipeline component before creating the first CAS to pass through the pipeline. It is not possible to add types piece by piece to the type sy