Hi Armando, you may also know that "." for your match is a predefined character classes that match any character. If you only want to match the dot (.) you have to specify "\."
But I think this shouldn't make a difference in your case, or can you explain exactly what doesn't work? I think you have the number annotations but you won't have them correct? If you are able to debug in your env - the interesting piece of code is org.apache.uima.annotator.regex.impl.RegExAnnotator.java at line 487. -- Michael Armando Stellato wrote: > Hi Michael, > > thanks for replying: > >> how do you define it.starred.odnamar.uima.tcas.Date? >> Is the super type of "it.starred.odnamar.uima.tcas.Date" >> "uima.tcas.Annotation"? > > Yes it is > >> Not sure if the setup in your scenario match the design. The annotation > you >> specify as exception >> (it.starred.odnamar.uima.tcas.Date) have to cover the annotation of the >> original match. > > Yes, Dates should cover Numbers (for example: "8 December 2008", with 8 and > 2008 being numbers) > and they actually do in my aggregate annotator: I checked the annotations > being taken through the Document Analyzer tool, and I see Number annotations > inside Date annotations. > > Cheers, > > Armando > >
