-
Notifications
You must be signed in to change notification settings - Fork 1
/
API_JSON_document.txt
102 lines (96 loc) · 2.07 KB
/
API_JSON_document.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Pipeline Results:
JSONObject{
"experimentId": int,
"experimentTasks":
JSONArray[
EXPERIMENTS
]
}
EXPERIMENTS:
JSONObject{
"currentComponent": String,
"documents":
JSONArray[
DOCUMENTS
],
"pipelineConfig":
PIPELINE,
"errorMessage": String,
"experimentId": int,
"state": String (e.g. "DONE"),
"pipelineType": String (e.g. "FULL"),
"taskId": int
}
DOCUMENTS:
JSONArray[ -- need double JSONArray in order to store sub-pipeline results for each document
JSONObject{
"componentId": String,
"mentions":
JSONArray[
MENTIONS
],
"text": String (e.g. "Napoleon was the emperor of the First French Empire."),
"pipelineType": String (e.g. "ED"),
"uri": String
}
]
MENTIONS:
JSONObject{
"offset": int,
"assignment":
JSONObject{
"score": double,
"assignment": String (e.g. "http://dbpedia.org/resource/Empire")
},
"possibleAssignments":
JSONArray[
JSONObject{
"score": double,
"assignment": String
}
]
},
"originalWithoutStopwords": String (e.g. "Empire"),
"detectionConfidence": double (e.g. 0.0),
"originalMention": String (e.g. "Empire"),
"mention": String (e.g. "Empire")
}
PIPELINE:
JSONObject{
"startComponents":
JSONArray[
String (e.g. "MD1")
],
"components":
JSONObject{
"md" (Only if present. May be: md, cg, ed, md_cg_ed, md_cg, cg_ed, ...):
JSONArray[
JSONObject{
"id": String (e.g. "MD1"; ID matches w/ IDs in connections),
"value": String (e.g. "Babelfy")
}
],
"cg_ed" (IF PRESENT):
JSONArray[
JSONObject{
"id": String (e.g. "CG_ED1"),
"value": String (e.g. "Babelfy")
}
]
},
"exampleId": String (e.g. "md_combined_cged"),
"endComponents":
JSONArray[
String (e.g. "CG_ED1", "MD1")
],
"displayName": String (e.g. "MD + combined CG-ED"),
"id": int (e.g. 1),
"connections":
JSONArray[
JSONObject{
"source": String (e.g. "MD1"),
"target": String (e.g. "CG_ED1")
}
],
"pipelineConfigType": String (e.g. "complex")
}