public class QALD4_EvaluationUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
QALD4_EvaluationUtils() |
| Modifier and Type | Method and Description |
|---|---|
private static Set<org.apache.jena.rdf.model.RDFNode> |
answersToRDFNode(Set<String> answers) |
static double |
fMeasure(Set<org.apache.jena.rdf.model.RDFNode> systemAnswers,
IQuestion question) |
static boolean |
isAskType(String sparqlQuery) |
private static boolean |
isSelectType(String sparqlQuery) |
static double |
precision(Set<org.apache.jena.rdf.model.RDFNode> systemAnswer,
IQuestion question) |
static double |
recall(Set<org.apache.jena.rdf.model.RDFNode> systemAnswer,
IQuestion question) |
public static double precision(Set<org.apache.jena.rdf.model.RDFNode> systemAnswer, IQuestion question)
public static double recall(Set<org.apache.jena.rdf.model.RDFNode> systemAnswer, IQuestion question)
public static double fMeasure(Set<org.apache.jena.rdf.model.RDFNode> systemAnswers, IQuestion question)
public static boolean isAskType(String sparqlQuery)
private static boolean isSelectType(String sparqlQuery)
Copyright © 2016–2017 Pivotal Software, Inc.. All rights reserved.