thanks for the answers.
Is there also a way to get a Type from a String, which can be used as
argument for the JCasUtil.select method?
I want to use the type object to get all Annotations of type Sentence from
the Cas. And further extract all Annotations within this
sentence. There for sure
On 14.02.2014, at 09:50, hannes schantl johannes.scha...@gmail.com wrote:
thanks for the answers.
Is there also a way to get a Type from a String, which can be used as
argument for the JCasUtil.select method?
The JCasUtil methods assume that you have access to JCas classes, e.g.
import
Once you have the Type object you can get all and index to all the annotations
in the case using:
AnnotationIndexAnnotation mySentenceIndex =
jcas.getAnnotationIndex(mySentenceTypeObj);
Then you can get an iterator over the index using:
FSIteratorAnnotation mySentenceIterator =
I attached a patch to Jira UIMA-3616 and instructions on how to apply
it. If there are any problems let me know and I'll get right on it.
Note that you don't need a source-level distribution (ducc_ling source
is supplied in the binary distro) but you do need a current 1.0.0
ducc_ling.c.