// load the text from the URI, run the preprocessor, then run the
// Knowtator XML reader
AggregateBuilder builder = new AggregateBuilder();
builder.add(UriToDocumentTextAnnotator.getDescription());
File preprocessDescFile = new File("desc/analysis_engine/RelationExtractorPreprocessor.xml");
XMLParser parser = UIMAFramework.getXMLParser();
XMLInputSource source = new XMLInputSource(preprocessDescFile);
builder.add(parser.parseAnalysisEngineDescription(source));
builder.add(AnalysisEngineFactory.createPrimitiveDescription(
ViewCreatorAnnotator.class,
ViewCreatorAnnotator.PARAM_VIEW_NAME,
GOLD_VIEW_NAME));
builder.add(AnalysisEngineFactory.createPrimitiveDescription(CopyDocumentTextToGoldView.class));