public abstract class ErrorCountingAnnotatorDecorator extends AbstractAnnotatorDecorator implements Evaluator<org.aksw.gerbil.transfer.nif.Marking>, ErrorCounter
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_COUNT_RESULT_NAME |
protected int |
errorCount |
protected int |
maxErrors |
decoratedAnnotator| Modifier | Constructor and Description |
|---|---|
protected |
ErrorCountingAnnotatorDecorator(Annotator decoratedAnnotator,
int maxErrors) |
| Modifier and Type | Method and Description |
|---|---|
static ErrorCountingAnnotatorDecorator |
createDecorator(ExperimentType type,
Annotator annotator,
int numberOfExpectedCalls) |
void |
evaluate(List<List<org.aksw.gerbil.transfer.nif.Marking>> annotatorResults,
List<List<org.aksw.gerbil.transfer.nif.Marking>> goldStandard,
EvaluationResultContainer results) |
int |
getErrorCount() |
protected void |
increaseErrorCount() |
protected static void |
logResult(List<? extends org.aksw.gerbil.transfer.nif.Marking> result,
String annotatorName,
String markingName) |
protected static List<org.aksw.gerbil.transfer.nif.Meaning> |
performC2KB(ErrorCountingAnnotatorDecorator errorCounter,
org.aksw.gerbil.transfer.nif.Document document) |
protected static List<org.aksw.gerbil.transfer.nif.MeaningSpan> |
performD2KBTask(ErrorCountingAnnotatorDecorator errorCounter,
org.aksw.gerbil.transfer.nif.Document document) |
protected static List<org.aksw.gerbil.transfer.nif.MeaningSpan> |
performExtraction(ErrorCountingAnnotatorDecorator errorCounter,
org.aksw.gerbil.transfer.nif.Document document) |
protected static List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> |
performOKETask1(ErrorCountingAnnotatorDecorator errorCounter,
org.aksw.gerbil.transfer.nif.Document document) |
protected static List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> |
performOKETask2(ErrorCountingAnnotatorDecorator errorCounter,
org.aksw.gerbil.transfer.nif.Document document) |
protected static List<org.aksw.gerbil.transfer.nif.Span> |
performRecognition(ErrorCountingAnnotatorDecorator errorCounter,
org.aksw.gerbil.transfer.nif.Document document) |
static List<org.aksw.gerbil.transfer.nif.TypedSpan> |
performRT2KBTask(ErrorCountingAnnotatorDecorator errorCounter,
org.aksw.gerbil.transfer.nif.Document document) |
protected static List<org.aksw.gerbil.transfer.nif.TypedSpan> |
performTyping(ErrorCountingAnnotatorDecorator errorCounter,
org.aksw.gerbil.transfer.nif.Document document) |
void |
setErrorCount(int errorCount) |
static void |
setPrintDebugMsg(boolean flag) |
close, getDecoratedAnnotator, getName, setClosePermitionGranter, setNamepublic static final String ERROR_COUNT_RESULT_NAME
protected int errorCount
protected int maxErrors
protected ErrorCountingAnnotatorDecorator(Annotator decoratedAnnotator, int maxErrors)
public static ErrorCountingAnnotatorDecorator createDecorator(ExperimentType type, Annotator annotator, int numberOfExpectedCalls)
protected static void logResult(List<? extends org.aksw.gerbil.transfer.nif.Marking> result, String annotatorName, String markingName)
protected static List<org.aksw.gerbil.transfer.nif.Meaning> performC2KB(ErrorCountingAnnotatorDecorator errorCounter, org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionprotected static List<org.aksw.gerbil.transfer.nif.MeaningSpan> performD2KBTask(ErrorCountingAnnotatorDecorator errorCounter, org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionprotected static List<org.aksw.gerbil.transfer.nif.MeaningSpan> performExtraction(ErrorCountingAnnotatorDecorator errorCounter, org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionprotected static List<org.aksw.gerbil.transfer.nif.TypedSpan> performTyping(ErrorCountingAnnotatorDecorator errorCounter, org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionprotected static List<org.aksw.gerbil.transfer.nif.Span> performRecognition(ErrorCountingAnnotatorDecorator errorCounter, org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionprotected static List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> performOKETask1(ErrorCountingAnnotatorDecorator errorCounter, org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionprotected static List<org.aksw.gerbil.transfer.nif.data.TypedNamedEntity> performOKETask2(ErrorCountingAnnotatorDecorator errorCounter, org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionpublic static List<org.aksw.gerbil.transfer.nif.TypedSpan> performRT2KBTask(ErrorCountingAnnotatorDecorator errorCounter, org.aksw.gerbil.transfer.nif.Document document) throws GerbilException
GerbilExceptionpublic int getErrorCount()
getErrorCount in interface ErrorCounterpublic void setErrorCount(int errorCount)
setErrorCount in interface ErrorCounterprotected void increaseErrorCount()
throws GerbilException
GerbilExceptionpublic void evaluate(List<List<org.aksw.gerbil.transfer.nif.Marking>> annotatorResults, List<List<org.aksw.gerbil.transfer.nif.Marking>> goldStandard, EvaluationResultContainer results)
public static void setPrintDebugMsg(boolean flag)
Copyright © 2014–2017. All rights reserved.