/** * Run a sequence of {@link AnalysisEngine analysis engines} over a {@link JCas}. The result of * the analysis can be read from the JCas. * * @param aCas * the CAS to process * @param aDescs * a sequence of analysis engines to run on the jCas * @throws UIMAException * @throws IOException */ public static void runPipeline(final CAS aCas, final AnalysisEngineDescription... aDescs) throws UIMAException, IOException { // Create aggregate AE final AnalysisEngineDescription aaeDesc = createAggregateDescription(aDescs); // Instantiate final AnalysisEngine aae = createAggregate(aaeDesc); try { // Process aae.process(aCas); // Signal end of processing aae.collectionProcessComplete(); } finally { // Destroy aae.destroy(); } }
final AnalysisEngineDescription... descs) throws UIMAException, IOException { final AnalysisEngineDescription aaeDesc = createAggregateDescription(descs);