Skip to content

Commit

Permalink
Removed the GSInKB classifier from the A2KB experiment as it does not…
Browse files Browse the repository at this point in the history
… make sense there.
  • Loading branch information
MichaelRoeder committed Mar 8, 2016
1 parent a61e327 commit 99e409d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/java/org/aksw/gerbil/evaluate/EvaluatorFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,11 @@ protected Evaluator createEvaluator(ExperimentType type, ExperimentTaskConfigura
MatchingsSearcher<ClassifiedSpanMeaning> searcher = (MatchingsSearcher<ClassifiedSpanMeaning>) MatchingsSearcherFactory
.createSpanMatchingsSearcher(configuration.matching);
return new ClassifyingEvaluatorDecorator<MeaningSpan, ClassifiedSpanMeaning>(
new GSInKBClassifyingEvaluatorDecorator<ClassifiedSpanMeaning>(
new ClassConsideringFMeasureCalculator<ClassifiedSpanMeaning>(
new MatchingsCounterImpl<ClassifiedSpanMeaning>(
new CompoundMatchingsSearcher<ClassifiedSpanMeaning>(searcher,
new ClassifiedMeaningMatchingsSearcher<ClassifiedSpanMeaning>())),
MarkingClasses.IN_KB, MarkingClasses.EE, MarkingClasses.GS_IN_KB),
searcher),
new ClassConsideringFMeasureCalculator<ClassifiedSpanMeaning>(
new MatchingsCounterImpl<ClassifiedSpanMeaning>(
new CompoundMatchingsSearcher<ClassifiedSpanMeaning>(searcher,
new ClassifiedMeaningMatchingsSearcher<ClassifiedSpanMeaning>())),
MarkingClasses.IN_KB, MarkingClasses.EE, MarkingClasses.GS_IN_KB),
new UriBasedMeaningClassifier<ClassifiedSpanMeaning>(classifier, MarkingClasses.IN_KB),
new EmergingEntityMeaningClassifier<ClassifiedSpanMeaning>());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 99e409d

Please sign in to comment.