RelationExtractorEvaluation.ANNOTATOR_CLASSES.get(relationClass);
ParameterSettings params = RelationExtractorEvaluation.BEST_PARAMETERS.get(relationClass);
// train the relation extractor
File trainDirectory = new File(resourcesDirectory, modelPath);
RelationExtractorEvaluation evaluation =
new RelationExtractorEvaluation(trainDirectory, relationClass, annotatorClass, params);
evaluation.train(evaluation.getCollectionReader(trainFiles), trainDirectory);
// create the description
Object[] pathParameters =
new Object[] { GenericJarClassifierFactory.PARAM_CLASSIFIER_JAR_PATH,
"/" + modelPath + "/model.jar" };