@Test public void test() throws Exception { CpePipeline.runPipeline(CollectionReaderFactory.createReaderDescription(Reader.class), AnalysisEngineFactory.createEngineDescription(Annotator.class), AnalysisEngineFactory.createEngineDescription(Writer.class)); Assert.assertEquals(MARKER, Writer.MARKER_SEEN); }
public static void runPipeline(final CollectionReaderDescription readerDesc, final AnalysisEngineDescription... descs) throws SAXException, CpeDescriptorException, IOException, ResourceInitializationException, InvalidXMLException, AnalysisEngineProcessException { runPipeline(Math.max(1, getRuntime().availableProcessors() - 1), readerDesc, descs); }
CpePipeline { public static void runPipeline(final CollectionReaderDescription readerDesc, final AnalysisEngineDescription... descs) throws SAXException, CpeDescriptorException, IOException, ResourceInitializationException, InvalidXMLException, AnalysisEngineProcessException { runPipeline(Math.max(1, getRuntime().availableProcessors() - 1), readerDesc, descs); } }
CpePipeline { public static void runPipeline(final CollectionReaderDescription readerDesc, final AnalysisEngineDescription... descs) throws SAXException, CpeDescriptorException, IOException, ResourceInitializationException, InvalidXMLException, AnalysisEngineProcessException { runPipeline(Math.max(1, getRuntime().availableProcessors() - 1), readerDesc, descs); } private  CpePipeline(); }
CpePipeline { public static void runPipeline(final CollectionReaderDescription readerDesc, final AnalysisEngineDescription... descs) throws SAXException, CpeDescriptorException, IOException, ResourceInitializationException, InvalidXMLException, AnalysisEngineProcessException { runPipeline(Math.max(1, getRuntime().availableProcessors() - 1), readerDesc, descs); } private  CpePipeline(); static void runPipeline(final CollectionReaderDescription readerDesc,
          final AnalysisEngineDescription... descs); static void runPipeline(final int parallelism,
          final CollectionReaderDescription readerDesc, final AnalysisEngineDescription... descs); }
CpePipeline { public static void runPipeline(final CollectionReaderDescription readerDesc, final AnalysisEngineDescription... descs) throws SAXException, CpeDescriptorException, IOException, ResourceInitializationException, InvalidXMLException, AnalysisEngineProcessException { runPipeline(Math.max(1, getRuntime().availableProcessors() - 1), readerDesc, descs); } private  CpePipeline(); static void runPipeline(final CollectionReaderDescription readerDesc,
          final AnalysisEngineDescription... descs); static void runPipeline(final int parallelism,
          final CollectionReaderDescription readerDesc, final AnalysisEngineDescription... descs);  }