| Modifier and Type | Class and Description |
|---|---|
class |
Question |
| Modifier and Type | Method and Description |
|---|---|
static List<IQuestion> |
LoaderController.load(Dataset data) |
static List<IQuestion> |
LoaderController.load(Dataset data,
String deriveUri,
String questionLang)
Deprecated.
|
static List<IQuestion> |
LoaderController.loadNLQ(InputStream file) |
static List<IQuestion> |
LoaderController.loadNLQ(InputStream file,
String deriveUri) |
static List<IQuestion> |
LoaderController.loadTSV(InputStream queries,
String name)
Use this to load tsv files
|
static List<IQuestion> |
LoaderController.loadXML(InputStream file,
String questionLang)
This methods loads QALD XML files (used in QALD 1 to QALD 5)
|
static List<IQuestion> |
LoaderController.loadXML(InputStream file,
String deriveUri,
String questionLang)
Deprecated.
|
private static List<IQuestion> |
LoaderController.qald3_test_esdbpedia_loader(String deriveUri,
String questionLang)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static List<IQuestion> |
EJQuestionFactory.getQuestionsFromExtendedJson(ExtendedJson json) |
static List<IQuestion> |
EJQuestionFactory.getQuestionsFromExtendedJson(ExtendedJson json,
String deriveUri)
Deprecated.
|
static List<IQuestion> |
EJQuestionFactory.getQuestionsFromJson(Object json) |
static List<IQuestion> |
EJQuestionFactory.getQuestionsFromJson(Object json,
String deriveUri)
Deprecated.
|
static List<IQuestion> |
EJQuestionFactory.getQuestionsFromQaldJson(QaldJson json) |
static List<IQuestion> |
EJQuestionFactory.getQuestionsFromQaldJson(QaldJson json,
String deriveUri)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
EJQuestionFactory.getAnswersFromAnswerObject(EJAnswers answerObject,
IQuestion question) |
private static void |
EJQuestionFactory.setAnswersInJson(EJAnswers answers,
IQuestion question) |
| Modifier and Type | Method and Description |
|---|---|
static ExtendedJson |
EJQuestionFactory.getExtendedJson(List<IQuestion> questions) |
static QaldJson |
EJQuestionFactory.getQaldJson(List<IQuestion> questions) |
| Modifier and Type | Method and Description |
|---|---|
static List<IQuestion> |
StanfordLoader.load(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
static List<IQuestion> |
LoadTsv.readTSV(InputStream queriesStream,
InputStream qrels,
String data) |
| Modifier and Type | Method and Description |
|---|---|
static double |
AnswerBasedEvaluation.fMeasure(Set<String> systemAnswers,
IQuestion question) |
static double |
AnswerBasedEvaluation.precision(Set<String> systemAnswer,
IQuestion question) |
static double |
AnswerBasedEvaluation.recall(Set<String> systemAnswer,
IQuestion question) |
| Modifier and Type | Class and Description |
|---|---|
class |
Qald7Question |
| Modifier and Type | Method and Description |
|---|---|
private static IQuestion |
IQuestionCsvParser.csvRowToQuestion(String[] csvRow,
IQuestionCsvParser.Column... columns)
Works as described in
IQuestionCsvParser.csvToQuestionList(CSVReader, Column...) |
| Modifier and Type | Method and Description |
|---|---|
static List<IQuestion> |
IQuestionCsvParser.csvToQuestionList(au.com.bytecode.opencsv.CSVReader reader,
IQuestionCsvParser.Column... columns)
Reads a CSV which source is defined by given
CSVReader, which also defines the separation and quotation chars. |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
Qald7CreationTool.checkAnswertypeSet(IQuestion q) |
private boolean |
Qald7CreationTool.checkAtleastSixLanguages(IQuestion q) |
private boolean |
Qald7CreationTool.checkKeywordsPresent(IQuestion q) |
private boolean |
Qald7CreationTool.checkSparqlPresent(IQuestion q) |
static Qald7Question |
Qald7QuestionFactory.createInstance(IQuestion q) |
static double |
QALD4_EvaluationUtils.fMeasure(Set<org.apache.jena.rdf.model.RDFNode> systemAnswers,
IQuestion question) |
Set<String> |
Qald7CreationTool.getAnswersFromServer(IQuestion q)
Returns answers from official dbpedia endpoint to the stored sparql in
IQuestion |
static double |
QALD4_EvaluationUtils.precision(Set<org.apache.jena.rdf.model.RDFNode> systemAnswer,
IQuestion question) |
static double |
QALD4_EvaluationUtils.recall(Set<org.apache.jena.rdf.model.RDFNode> systemAnswer,
IQuestion question) |
| Modifier and Type | Method and Description |
|---|---|
static List<Qald7Question> |
Qald7QuestionFactory.createInstances(Collection<IQuestion> questions) |
static void |
IQuestionCsvParser.questionListToCsv(au.com.bytecode.opencsv.CSVWriter writer,
boolean columnDescriptorgRow,
List<IQuestion> questions,
IQuestionCsvParser.Column... columns)
Writes all data specified by the columns from all given IQuestions to the csvwriter.
|
void |
QALDWriter.writeQALDJsonFile(List<IQuestion> questions,
String fileName)
Can be used to write QALD JSON files like
https://github.com/ag-sc/QALD/blob/master/9/data/qald-9-train-multilingual.json.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
AnswerSyncer.answer(ThreadedSPARQL sp,
IQuestion q) |
static void |
AnswerSyncer.syncAnswers(IQuestion q,
String endpoint)
Retrieves answers for the sparql in this IQuestion from given endpoint, and sets it as goldenAnswers.
|
static void |
AnswerSyncer.syncAnswers(IQuestion q,
String endpoint,
int queryTimeoutInSecs)
Retrieves answers for the sparql in this IQuestion from given endpoint, and sets it as goldenAnswers.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AnswerSyncer.syncAnswers(List<IQuestion> questions,
String endpoint)
Retrieves answers for the sparql in all IQuestions from given endpoint, and sets it as goldenAnswers.
|
static void |
AnswerSyncer.syncAnswers(List<IQuestion> questions,
String endpoint,
int queryTimeoutInSecs)
Retrieves answers for the sparql in all IQuestions from given endpoint, and sets it as goldenAnswers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StoreQALDXML.write(IQuestion q) |
Copyright © 2016–2019. All rights reserved.