I followed the tutorial for the dkpro, which is heavily reliant on UimaFit, and got a working pipeline. I now want to convert that pipeline into a PEAR so that it can be deployed to a UIMA AS cluster. I've figured out that I can call the toXML() to get the XML descriptors for the analysis engines. How do I convert the CollectionReader and the runpipeline part of the code? The code is below for reference, and is very similar to the example code for UimaFit. Thanks
CollectionReader reader = createCollectionReader(TextReader.class,
TextReader.PARAM_PATH, "src/test/resources/text",
TextReader.PARAM_PATTERNS, new String[] { "[+]*.txt", "[-]broken.txt" },
TextReader.PARAM_LANGUAGE, "en");
AnalysisEngine tokenizer = createPrimitive(BreakIteratorSegmenter.class);
AnalysisEngine nameFinder = createPrimitive(DictionaryAnnotator.class,
DictionaryAnnotator.PARAM_PHRASE_FILE, "src/test/resources/dictionaries/names.txt",
DictionaryAnnotator.PARAM_ANNOTATION_TYPE, Name.class.getName());
AnalysisEngine writer = createPrimitive(CASDumpWriter.class,
CASDumpWriter.PARAM_OUTPUT_FILE, "target/output.txt");
SimplePipeline.runPipeline(reader, tokenizer, nameFinder, writer);