/** * Creates a new AnalysisEngineDescription from an Aggregrator that contains all input * AnalysisEngineDescriptions in given order. This is intended for the use of a filter like * {@link CasFilter_ImplBase}; all subsequent analysis engines will only see the documents that * have passed the filter. * * @param aEngines * {@link AnalysisEngineDescription}s that should be aggregated. * @return a single {@link AnalysisEngineDescription} aggregating all the input engines. * @throws ResourceInitializationException * if any input analysis engine cannot be initialized */ public static AnalysisEngineDescription createAggregateBuilderDescription( AnalysisEngineDescription... aEngines) throws ResourceInitializationException { AggregateBuilder aggregateBuilder = new AggregateBuilder(); aggregateBuilder.setFlowControllerDescription(FlowControllerFactory .createFlowControllerDescription(FixedFlowController.class, FixedFlowController.PARAM_ACTION_AFTER_CAS_MULTIPLIER, "drop")); for (AnalysisEngineDescription aEngine : aEngines) { aggregateBuilder.add(aEngine); } return aggregateBuilder.createAggregateDescription(); }
aggregateBuilder.setFlowControllerDescription(corefFlowControl);
aggregateBuilder.setFlowControllerDescription(corefFlowControl);