public class AssertionEvaluation extends org.cleartk.eval.Evaluation_ImplBase<File,Map<String,AnnotationStatisticsCompact<String>>>
Modifier and Type | Class and Description |
---|---|
static class |
AssertionEvaluation.HashableAnnotation |
static class |
AssertionEvaluation.OnlyGoldAssertions
Class that copies the manual
Modifier annotations to the default CAS. |
static class |
AssertionEvaluation.Options |
static class |
AssertionEvaluation.ReferenceAnnotationsSystemAssertionClearer
Class that copies the manual
Modifier annotations to the default CAS. |
static class |
AssertionEvaluation.ReferenceIdentifiedAnnotationsSystemToGoldCopier
Class that copies the manual
Modifier annotations to the default CAS. |
static class |
AssertionEvaluation.ReferenceSupportingAnnotationsSystemToGoldCopier
Class that copies the manual
Modifier annotations to the default CAS. |
static class |
AssertionEvaluation.ReplaceCTakesEntityMentionsAndModifiersWithGold
Annotator that removes cTAKES EntityMentions and Modifiers from the system
view, and copies over the manually annotated EntityMentions and Modifiers
from the gold view.
|
Modifier and Type | Field and Description |
---|---|
protected ArrayList<String> |
annotationTypes |
static String |
evaluationLogFilePath |
static String |
GOLD_VIEW_NAME |
protected static AssertionEvaluation.Options |
options |
static boolean |
useEvaluationLogFile |
Constructor and Description |
---|
AssertionEvaluation(File modelDirectory,
File evaluationOutputDirectory,
ArrayList<String> annotationTypes,
Class<? extends org.cleartk.ml.DataWriter<String>> dataWriterClass,
String... trainingArguments) |
Modifier and Type | Method and Description |
---|---|
org.apache.uima.collection.CollectionReader |
getCollectionReader(List<File> items) |
protected Class<? extends org.cleartk.ml.DataWriter<String>> |
getDataWriterClass() |
static void |
main(String[] args) |
static void |
preprocess(File rawDir) |
static void |
printScore(Map<String,AnnotationStatisticsCompact<String>> map,
String directory) |
protected Map<String,AnnotationStatisticsCompact<String>> |
test(org.apache.uima.collection.CollectionReader collectionReader,
File directory) |
void |
train(org.apache.uima.collection.CollectionReader collectionReader,
File directory) |
protected void |
trainAndPackage(String currentAssertionAttribute,
File directory,
String[] arguments) |
public static String evaluationLogFilePath
public static boolean useEvaluationLogFile
protected static AssertionEvaluation.Options options
public static final String GOLD_VIEW_NAME
public static void printScore(Map<String,AnnotationStatisticsCompact<String>> map, String directory)
public org.apache.uima.collection.CollectionReader getCollectionReader(List<File> items) throws org.apache.uima.resource.ResourceInitializationException
getCollectionReader
in class org.cleartk.eval.Evaluation_ImplBase<File,Map<String,AnnotationStatisticsCompact<String>>>
org.apache.uima.resource.ResourceInitializationException
public static void preprocess(File rawDir) throws org.apache.uima.resource.ResourceInitializationException, org.apache.uima.UIMAException, IOException
org.apache.uima.resource.ResourceInitializationException
org.apache.uima.UIMAException
IOException
public void train(org.apache.uima.collection.CollectionReader collectionReader, File directory) throws Exception
protected Map<String,AnnotationStatisticsCompact<String>> test(org.apache.uima.collection.CollectionReader collectionReader, File directory) throws Exception
protected void trainAndPackage(String currentAssertionAttribute, File directory, String[] arguments) throws Exception
Exception
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.