From 99e409d5150b2da047f61c47f33610e9f9fd8d15 Mon Sep 17 00:00:00 2001 From: mroeder Date: Tue, 8 Mar 2016 12:09:57 +0100 Subject: [PATCH] Removed the GSInKB classifier from the A2KB experiment as it does not make sense there. --- .../org/aksw/gerbil/evaluate/EvaluatorFactory.java | 12 +++++------- .../http/WaitingDocumentReturningServerMock.java | 1 + 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/aksw/gerbil/evaluate/EvaluatorFactory.java b/src/main/java/org/aksw/gerbil/evaluate/EvaluatorFactory.java index 553588d4d..63c028aad 100644 --- a/src/main/java/org/aksw/gerbil/evaluate/EvaluatorFactory.java +++ b/src/main/java/org/aksw/gerbil/evaluate/EvaluatorFactory.java @@ -134,13 +134,11 @@ protected Evaluator createEvaluator(ExperimentType type, ExperimentTaskConfigura MatchingsSearcher searcher = (MatchingsSearcher) MatchingsSearcherFactory .createSpanMatchingsSearcher(configuration.matching); return new ClassifyingEvaluatorDecorator( - new GSInKBClassifyingEvaluatorDecorator( - new ClassConsideringFMeasureCalculator( - new MatchingsCounterImpl( - new CompoundMatchingsSearcher(searcher, - new ClassifiedMeaningMatchingsSearcher())), - MarkingClasses.IN_KB, MarkingClasses.EE, MarkingClasses.GS_IN_KB), - searcher), + new ClassConsideringFMeasureCalculator( + new MatchingsCounterImpl( + new CompoundMatchingsSearcher(searcher, + new ClassifiedMeaningMatchingsSearcher())), + MarkingClasses.IN_KB, MarkingClasses.EE, MarkingClasses.GS_IN_KB), new UriBasedMeaningClassifier(classifier, MarkingClasses.IN_KB), new EmergingEntityMeaningClassifier()); } diff --git a/src/test/java/org/aksw/gerbil/annotator/http/WaitingDocumentReturningServerMock.java b/src/test/java/org/aksw/gerbil/annotator/http/WaitingDocumentReturningServerMock.java index d86bd5137..de8a4f01e 100644 --- a/src/test/java/org/aksw/gerbil/annotator/http/WaitingDocumentReturningServerMock.java +++ b/src/test/java/org/aksw/gerbil/annotator/http/WaitingDocumentReturningServerMock.java @@ -66,6 +66,7 @@ public void handle(Request request, Response response) { } String responseString; if (documents.containsKey(requestDoc.getDocumentURI())) { + LOGGER.error("Couldn't find document with URI \"{}\". Returning request document.", requestDoc.getDocumentURI()); responseString = nifCreator.getDocumentAsNIFString(documents.get(requestDoc.getDocumentURI())); } else { responseString = nifCreator.getDocumentAsNIFString(requestDoc);