File descriptorsDirectory) throws Exception {
// get the annotator class and best parameters for this relation
Class<? extends RelationExtractorAnnotator> annotatorClass =
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);