Re: Adding methods to UIMA annotation types defined in XML
Sure. You generate the JCas classes once and then you add the methods you want to them. Cf. e.g. https://github.com/dkpro/dkpro-core/blob/8043e10bf10a61fe47e21946ea609bda9f2278a0/dkpro-core-api-metadata-asl/src/main/java/de/tudarmstadt/ukp/dkpro/core/api/metadata/type/DocumentMetaData.java#L290-L447 But the question is: why do you want to add new methods? (and is it really a good idea?) Cheers, -- Richard
Adding methods to UIMA annotation types defined in XML
One of the things that drives me nuts about the UIMA type definition system is that it seems very hard (if not impossible?) to create new types of annotation that have additional methods. My approach to dealing with that has been to wrap the annotation into a wrapper class that decorates the annotation with new methods. But I wonder if there is a more direct way of doing that? Thx.