public class QALD_Loader extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
QALD_Loader() |
| Modifier and Type | Method and Description |
|---|---|
private static InputStream |
getInputStream(Dataset set) |
static List<IQuestion> |
load(Dataset data) |
static List<IQuestion> |
loadJSON(InputStream file)
This method loads QALD JSON files as used in QALD 6
|
static List<IQuestion> |
loadNLQ(InputStream file) |
static List<IQuestion> |
loadXML(InputStream file)
This methods loads QALD XML files (used in QALD 1 to QALD 5)
|
static void |
main(String[] args) |
private static URL |
mapDatasetToPath(Dataset set) |
private static InputStream getInputStream(Dataset set)
public static List<IQuestion> loadXML(InputStream file)
file - public static List<IQuestion> loadJSON(InputStream file)
file - public static List<IQuestion> loadNLQ(InputStream file)
public static void main(String[] args)
Copyright © 2016. All rights reserved.