/** * Constructor * * @param name Pipeline name * @param config The pipeline configuration object used to build the pipeline * @param orderer The IPipelineOrderer to use to order the pipeline * @param collectionReader The collection reader * @param annotators The annotators to be ordered and used * @param consumers The consumers to be ordered and used */ public BaleenPipeline( String name, PipelineConfiguration config, IPipelineOrderer orderer, CollectionReader collectionReader, List<AnalysisEngine> annotators, List<AnalysisEngine> consumers) { this.name = name; this.config = config; this.collectionReader = collectionReader; this.annotators = orderer.orderPipeline(annotators); this.consumers = orderer.orderPipeline(consumers); }
/** * Constructor * * @param name Pipeline name * @param config The pipeline configuration object used to build the pipeline * @param orderer The IPipelineOrderer to use to order the pipeline * @param collectionReader The collection reader * @param annotators The annotators to be ordered and used * @param consumers The consumers to be ordered and used */ public BaleenPipeline( String name, PipelineConfiguration config, IPipelineOrderer orderer, CollectionReader collectionReader, List<AnalysisEngine> annotators, List<AnalysisEngine> consumers) { this.name = name; this.config = config; this.collectionReader = collectionReader; this.annotators = orderer.orderPipeline(annotators); this.consumers = orderer.orderPipeline(consumers); }