RE: Delete an OntologyConcept from a JCas using an Annotator

2016-04-07 Thread Finan, Sean
Hi Tomasz, Just in case nobody has a better answer: I think that you might need to may a new array at size n-1 , then copy all ontology concepts that you do want, then set the annotation's ontology concept array to be the new one. Sean -Original Message- From: Tomasz Oliwa [mailto:ol..

Delete an OntologyConcept from a JCas using an Annotator

2016-04-07 Thread Tomasz Oliwa
How can I delete an OntologyConcept from a JCas using an Annotator? As an example, the following process method from an Annotator loops over all IdentifiedAnnotations, and is supposed to simply remove all OntologyConcepts. However, it does not remove anything from the CAS. I can still see all