public class TempEval2010Evaluation extends Evaluation_ImplBase<String,Map<ModelInfo<?>,AnnotationStatistics<String>>>
| Modifier and Type | Class and Description |
|---|---|
static class |
TempEval2010Evaluation.XMIReader |
| Modifier and Type | Field and Description |
|---|---|
static String |
GOLD_VIEW_NAME |
static String |
SYSTEM_VIEW_NAME |
baseDirectory| Constructor and Description |
|---|
TempEval2010Evaluation(File trainDir,
File testDir,
File outputDirectory,
List<String> goldAnnotatorParamsForViewsRequiredBySystem,
String goldAnnotatorParamForViewAnnotatedBySystem,
String timemlWriterParamForViewAnnotatedBySystem,
List<AnalysisEngineDescription> preprocessingAnnotators,
List<? extends ModelInfo<?>> modelInfos) |
| Modifier and Type | Method and Description |
|---|---|
protected CollectionReader |
getCollectionReader(List<String> items)
Creates a
CollectionReader from the given items. |
protected Map<ModelInfo<?>,AnnotationStatistics<String>> |
test(CollectionReader collectionReader,
File directory)
Evaluates a model on a set of testing data.
|
protected void |
train(CollectionReader collectionReader,
File directory)
Trains a model on a set of training data.
|
crossValidation, selectFoldTestItems, selectFoldTrainItems, trainAndTestpublic static final String GOLD_VIEW_NAME
public static final String SYSTEM_VIEW_NAME
public TempEval2010Evaluation(File trainDir, File testDir, File outputDirectory, List<String> goldAnnotatorParamsForViewsRequiredBySystem, String goldAnnotatorParamForViewAnnotatedBySystem, String timemlWriterParamForViewAnnotatedBySystem, List<AnalysisEngineDescription> preprocessingAnnotators, List<? extends ModelInfo<?>> modelInfos) throws Exception
Exceptionprotected CollectionReader getCollectionReader(List<String> items) throws Exception
Evaluation_ImplBaseCollectionReader from the given items.
This method is called in Evaluation_ImplBase.trainAndTest(List, List) and
Evaluation_ImplBase.crossValidation(List, int) to create readers both for the training data and for the
testing data.getCollectionReader in class Evaluation_ImplBase<String,Map<ModelInfo<?>,AnnotationStatistics<String>>>items - Items from the training, test or cross-validation sets.CollectionReader that produces CASes for the items.Exceptionprotected Map<ModelInfo<?>,AnnotationStatistics<String>> test(CollectionReader collectionReader, File directory) throws Exception
Evaluation_ImplBasetest in class Evaluation_ImplBase<String,Map<ModelInfo<?>,AnnotationStatistics<String>>>collectionReader - The data on which the model should be tested.directory - The directory in which any model files should be written. This method may safely
assume that Evaluation_ImplBase.train(CollectionReader, File) was called on this same directory
before Evaluation_ImplBase.test(CollectionReader, File) was called.Exceptionprotected void train(CollectionReader collectionReader, File directory) throws Exception
Evaluation_ImplBasetrain in class Evaluation_ImplBase<String,Map<ModelInfo<?>,AnnotationStatistics<String>>>collectionReader - The data on which the model should be trained.directory - The directory in which any model files should be written.ExceptionCopyright © 2014. All rights reserved.