Hi,
I'm trying to use an example aggregate descriptor (RoomNumberAndDateTime) using this simple code:

XMLInputSource input = new XMLInputSource("desc/analysis_engine/RoomNumberAndDateTime.xml"); AnalysisEngineDescription desc = UIMAFramework.getXMLParser().parseAnalysisEngineDescription(input); AnalysisEngine seAnnotator = UIMAFramework.produceAnalysisEngine(desc); JCas cas = seAnnotator.newJCas(); cas.setDocumentText("August 26, 2003 \n UIMA 101 - The New UIMA Introduction \n (Hands-on Tutorial) \n 9:00AM-5:00PM in HAW GN-K35\n August 28, 2003");

       seAnnotator.process(cas);
FSIndex indexAnnotations = cas.getAnnotationIndex();
       Iterator<Annotation> annoIt = indexAnnotations.iterator();

if I iterate on annoIt I find only annotations for RoomNumber but not for Date or Time (as the DocumentAnalyzer do), what I'm doing wrong?

Thanks

Steve

Reply via email to