public class RelationExtractorEvaluation extends SHARPXMI.Evaluation_ImplBase
| Modifier and Type | Class and Description |
|---|---|
static class |
RelationExtractorEvaluation.AddPotentialRelations |
static class |
RelationExtractorEvaluation.HashableArguments
This class is useful for mapping the spans of relation arguments to the
relation's category.
|
static interface |
RelationExtractorEvaluation.Options |
static class |
RelationExtractorEvaluation.RemoveCTakesMentionsAndCopyGoldRelations
Annotator that removes cTAKES mentions in the system view and copies
relations from the gold view to the system view
|
static class |
RelationExtractorEvaluation.RemoveSmallerEventMentions |
static class |
RelationExtractorEvaluation.ReplaceCTakesMentionsWithGoldMentions
Annotator that removes cTAKES Mentions and Modifiers from the system view,
and copies over the manually annotated Mentions and Modifiers from the gold
view.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<Class<? extends BinaryTextRelation>,Class<? extends RelationExtractorAnnotator>> |
ANNOTATOR_CLASSES |
static Map<Class<? extends BinaryTextRelation>,ParameterSettings> |
BEST_PARAMETERS |
static boolean |
expandEvent |
static Map<String,Class<? extends BinaryTextRelation>> |
RELATION_CLASSES |
| Constructor and Description |
|---|
RelationExtractorEvaluation(File baseDirectory,
Class<? extends BinaryTextRelation> relationClass,
Class<? extends RelationExtractorAnnotator> classifierAnnotatorClass,
ParameterSettings parameterSettings) |
RelationExtractorEvaluation(File baseDirectory,
Class<? extends BinaryTextRelation> relationClass,
Class<? extends RelationExtractorAnnotator> classifierAnnotatorClass,
ParameterSettings parameterSettings,
boolean testOnCTakes,
boolean allowSmallerSystemArguments,
boolean ignoreImpossibleGoldRelations,
boolean printErrors,
boolean setClassWeights,
boolean expandEventParameter)
An evaluation of a relation extractor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
protected org.cleartk.eval.AnnotationStatistics<String> |
test(org.apache.uima.collection.CollectionReader collectionReader,
File directory) |
void |
train(org.apache.uima.collection.CollectionReader collectionReader,
File directory) |
getCollectionReaderpublic static final Map<String,Class<? extends BinaryTextRelation>> RELATION_CLASSES
public static final Map<Class<? extends BinaryTextRelation>,Class<? extends RelationExtractorAnnotator>> ANNOTATOR_CLASSES
public static final Map<Class<? extends BinaryTextRelation>,ParameterSettings> BEST_PARAMETERS
public static boolean expandEvent
public RelationExtractorEvaluation(File baseDirectory, Class<? extends BinaryTextRelation> relationClass, Class<? extends RelationExtractorAnnotator> classifierAnnotatorClass, ParameterSettings parameterSettings, boolean testOnCTakes, boolean allowSmallerSystemArguments, boolean ignoreImpossibleGoldRelations, boolean printErrors, boolean setClassWeights, boolean expandEventParameter)
baseDirectory - The directory where models, etc. should be writtenrelationClass - The class of the relation to be predictedclassifierAnnotatorClass - The CleartkAnnotator class that learns a relation extractor modelparameterSettings - The parameters defining how to train a classifiertestOnCTakes - During testing, use annotations from cTAKES, not from the gold
standardallowSmallerSystemArguments - During testing, allow system annotations to match gold annotations
that enclose themignoreImpossibleGoldRelations - During testing, ignore gold relations that would be impossible to
find because there are no corresponding system mentions
// * @param expandEventpublic RelationExtractorEvaluation(File baseDirectory, Class<? extends BinaryTextRelation> relationClass, Class<? extends RelationExtractorAnnotator> classifierAnnotatorClass, ParameterSettings parameterSettings)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.