uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Armin.Weg...@bka.bund.de>
Subject uimaFit way of creating an analysis description from an XML descriptor file
Date Mon, 29 Apr 2013 15:04:52 GMT

In classical UIMA you use following code to create an AnalysisEngineDescription from an XML
descriptor file.

final Path descriptorFilePath = Paths.get("/some/path/", "AnalysisEngineDescriptorFile.xml");
final XMLInputSource xmlInputSource = new XMLInputSource(descriptorFilePath.toFile());
final AnalysisEngineDescription analysisEngineDescription = UIMAFramework.getXMLParser().parseAnalysisEngineDescription(xmlInputSource);

Now you can use analysisEngineDescription with org.uimafit.factory.AggregateBuilder to create
an aggregate analysis engine and run the pipeline with SimpePipeline.run().

How is the uimaFit way to do this?



View raw message