ajdajd commited on
Commit
2a9f54c
·
1 Parent(s): 7b070b0

Test upload

Browse files
README.md ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: unknown
3
+ task_categories:
4
+ - object-detection
5
+ - image-segmentation
6
+ tags:
7
+ - pdf
8
+ - document-layout-analysis
9
+ - data-extraction
10
+ language:
11
+ - en
12
+ - fr
13
+ - es
14
+ size_categories:
15
+ - n<1K
16
+ ---
17
+
18
+ # Dataset card for data-snapshot
19
+
20
+ ## Dataset summary
21
+ The `data-snapshot` dataset is an annotated corpus designed for the evaluation and development of models for extracting *data snapshots* from PDF documents. A **data snapshot** is defined as a figure or table that contains quantitative data derived from statistics, indicators, or structured data sources.
22
+
23
+ ## Dataset structure
24
+
25
+ The repository is organized as follows:
26
+
27
+ ```
28
+ ai4data/data-snapshot/
29
+ ├── annotations/<source>/per_document/*.json # Contains annotation files per document
30
+ ├── annotations/<source>/combined/*.json # Combined annotations into 1 JSON file per source
31
+ ├── documents/<source>/*.pdf # Raw PDFs
32
+ ├── metadata/<source>/*.json # Document-level metadata
33
+ ├── schemas/data-snapshot-eval-v1.3.schema.json # Provides the schema of the annotation file
34
+ └── README.md
35
+ ```
36
+
37
+ ### Subsets
38
+ - `annotations`
39
+ - JSON files that indicate the data snapshots: their object class (Figure / Table) and bounding box locations (in normalized `[x1, y1, x2, y2]` format, top-left origin)
40
+ - Follows the schema provided in `data-snapshot-eval-v1.3.schema.json`
41
+ - Provided on a per-document basis or a combined JSON file per source
42
+ - `metadata`
43
+ - Provided on a per-document basis
44
+
45
+ ### Sources
46
+ - UNHCR
47
+ - PRWP (WIP)
48
+ - Refugee (WIP)
49
+
50
+ ## Schema
51
+
52
+ The annotation files follow the **Data Snapshot Evaluation Format (v1.3)**. Below is a simplified, human-readable example of the JSON schema with explanatory comments for each field.
53
+
54
+ > **Note**: You will notice a top-level field called `predictions`. In the context of this dataset, this is a misnomer because these are actually human-labeled **annotations** (ground truth). We use the key `predictions` because we borrow this schema from the project's evaluation codebase, which uses a unified structure for both ground truth and model predictions.
55
+
56
+ ```json
57
+ {
58
+ // Canonical mapping of integer IDs to class names
59
+ "label_map": {
60
+ "1": "Figure",
61
+ "2": "Table"
62
+ },
63
+
64
+ // High-level metadata about the file
65
+ "info": {
66
+ "schema_version": "1.3",
67
+ "type": "ground_truth", // Indicates these are human annotations
68
+ "dataset_id": "data-snapshot_unhcr",
69
+ "created_at": "2026-04-17T12:00:00Z",
70
+ "coordinate_system": {
71
+ "type": "normalized_xyxy",
72
+ "range": [0.0, 1.0], // Bounding boxes are normalized between 0 and 1
73
+ "origin": "top_left"
74
+ }
75
+ },
76
+
77
+ // List of documents referenced in this file
78
+ "documents": [
79
+ {
80
+ "doc_id": "1_advocacy_note_mineaction_-_niger_eng.pdf",
81
+ "doc_name": "1_advocacy_note_mineaction_-_niger_eng.pdf",
82
+ "doc_path": "pdf_input/1_advocacy_note_mineaction_-_niger_eng.pdf"
83
+ }
84
+ ],
85
+
86
+ // Per-page container of objects; these contain the ground truth annotations
87
+ "predictions": [
88
+ {
89
+ "page_id": "1_advocacy_note_mineaction_-_niger_eng.pdf::p001",
90
+ "doc_id": "1_advocacy_note_mineaction_-_niger_eng.pdf",
91
+ "page_index": 0, // 0-indexed page number
92
+ // Image data for Label Studio (ignore this)
93
+ "image": {
94
+ "width_px": 2481,
95
+ "height_px": 3508,
96
+ "path": "images/1_advocacy_note_mineaction_-_niger_eng.pdf_p001.png"
97
+ },
98
+ "objects": [
99
+ {
100
+ "id": "obj_001",
101
+ "label": "Figure", // Matches a label_map entry
102
+ "bbox": [0.1, 0.2, 0.8, 0.6], // Normalized [x_min, y_min, x_max, y_max]
103
+ }
104
+ ]
105
+ }
106
+ ]
107
+ }
108
+ ```
109
+
110
+ ## Dataset creation
111
+ The annotations were produced through human labeling using Label Studio.
112
+
113
+ ## Licensing information
114
+ [TBD]
115
+
116
+ ## Citation information
117
+ [TBD]
annotations/prwp/3rp_annual_report_2023_annotations.json ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label_map": {
3
+ "1": "Figure",
4
+ "2": "Table"
5
+ },
6
+ "info": {
7
+ "schema_version": "1.3",
8
+ "type": "prediction",
9
+ "created_at": "2026-04-15T08:56:17Z",
10
+ "run_id": "unknown-combined-f41f207221",
11
+ "model": {},
12
+ "coordinate_system": {
13
+ "type": "normalized_xyxy",
14
+ "range": [
15
+ 0.0,
16
+ 1.0
17
+ ],
18
+ "origin": "top_left"
19
+ }
20
+ },
21
+ "documents": {
22
+ "doc_id": "3rp_annual_report_2023.pdf",
23
+ "doc_name": "3rp_annual_report_2023.pdf",
24
+ "doc_path": "pdf_input/3rp_annual_report_2023.pdf"
25
+ },
26
+ "predictions": [
27
+ {
28
+ "page_id": "3rp_annual_report_2023.pdf::p003",
29
+ "doc_id": "3rp_annual_report_2023.pdf",
30
+ "page_index": 3,
31
+ "image": {
32
+ "width_px": 2481,
33
+ "height_px": 3508,
34
+ "path": "/data/local-files/?d=unhcr_batch7/3rp_annual_report_2023.pdf_p003.png"
35
+ },
36
+ "objects": [
37
+ {
38
+ "id": "21f4bba0",
39
+ "label": "Figure",
40
+ "bbox": [
41
+ 0.1102086838423375,
42
+ 0.21274284530735124,
43
+ 0.48426837913454773,
44
+ 0.43961155890331
45
+ ]
46
+ },
47
+ {
48
+ "id": "2a46dda6",
49
+ "label": "Figure",
50
+ "bbox": [
51
+ 0.1070520477110413,
52
+ 0.4664587345751412,
53
+ 0.48778904893318276,
54
+ 0.8411611211204744
55
+ ]
56
+ },
57
+ {
58
+ "id": "mq9K6MQnR9",
59
+ "label": "Figure",
60
+ "bbox": [
61
+ 0.5174633797923607,
62
+ 0.17736757624398097,
63
+ 0.8874043048193537,
64
+ 0.8852327447833075
65
+ ]
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "page_id": "3rp_annual_report_2023.pdf::p004",
71
+ "doc_id": "3rp_annual_report_2023.pdf",
72
+ "page_index": 4,
73
+ "image": {
74
+ "width_px": 2481,
75
+ "height_px": 3508,
76
+ "path": "/data/local-files/?d=unhcr_batch7/3rp_annual_report_2023.pdf_p004.png"
77
+ },
78
+ "objects": [
79
+ {
80
+ "id": "58a47120",
81
+ "label": "Figure",
82
+ "bbox": [
83
+ 0.10754278906407441,
84
+ 0.5284592775679745,
85
+ 0.8914898738222996,
86
+ 0.8533256991831175
87
+ ]
88
+ },
89
+ {
90
+ "id": "WRC1wbDaZq",
91
+ "label": "Figure",
92
+ "bbox": [
93
+ 0.10667008267649546,
94
+ 0.22632423756019265,
95
+ 0.34384079841466086,
96
+ 0.47110754414125194
97
+ ]
98
+ },
99
+ {
100
+ "id": "5h1uO2y1Gn",
101
+ "label": "Figure",
102
+ "bbox": [
103
+ 0.3699409250269949,
104
+ 0.22391653290529695,
105
+ 0.8964826097279939,
106
+ 0.4743178170144463
107
+ ]
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "page_id": "3rp_annual_report_2023.pdf::p005",
113
+ "doc_id": "3rp_annual_report_2023.pdf",
114
+ "page_index": 5,
115
+ "image": {
116
+ "width_px": 2481,
117
+ "height_px": 3508,
118
+ "path": "/data/local-files/?d=unhcr_batch7/3rp_annual_report_2023.pdf_p005.png"
119
+ },
120
+ "objects": [
121
+ {
122
+ "id": "c8716efa",
123
+ "label": "Figure",
124
+ "bbox": [
125
+ 0.11141789856258899,
126
+ 0.14673087650614505,
127
+ 0.9016149197964507,
128
+ 0.9280805763135942
129
+ ]
130
+ }
131
+ ]
132
+ }
133
+ ]
134
+ }
annotations/unhcr/1_advocacy_note_mineaction_-_niger_eng_annotations.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label_map": {
3
+ "1": "Figure",
4
+ "2": "Table"
5
+ },
6
+ "info": {
7
+ "schema_version": "1.3",
8
+ "type": "prediction",
9
+ "created_at": "2026-04-15T08:56:17Z",
10
+ "run_id": "unknown-combined-f41f207221",
11
+ "model": {},
12
+ "coordinate_system": {
13
+ "type": "normalized_xyxy",
14
+ "range": [
15
+ 0.0,
16
+ 1.0
17
+ ],
18
+ "origin": "top_left"
19
+ }
20
+ },
21
+ "documents": {
22
+ "doc_id": "1_advocacy_note_mineaction_-_niger_eng.pdf",
23
+ "doc_name": "1_advocacy_note_mineaction_-_niger_eng.pdf",
24
+ "doc_path": "pdf_input/1_advocacy_note_mineaction_-_niger_eng.pdf"
25
+ },
26
+ "predictions": [
27
+ {
28
+ "page_id": "1_advocacy_note_mineaction_-_niger_eng.pdf::p001",
29
+ "doc_id": "1_advocacy_note_mineaction_-_niger_eng.pdf",
30
+ "page_index": 1,
31
+ "image": {
32
+ "width_px": 2481,
33
+ "height_px": 3508,
34
+ "path": "/data/local-files/?d=unhcr_batch9/1_advocacy_note_mineaction_-_niger_eng.pdf_p001.png"
35
+ },
36
+ "objects": [
37
+ {
38
+ "id": "405114a6",
39
+ "label": "Figure",
40
+ "bbox": [
41
+ 0.45704879057411385,
42
+ 0.6967757488649745,
43
+ 0.8773235098991502,
44
+ 0.8431980969465023
45
+ ]
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "page_id": "1_advocacy_note_mineaction_-_niger_eng.pdf::p002",
51
+ "doc_id": "1_advocacy_note_mineaction_-_niger_eng.pdf",
52
+ "page_index": 2,
53
+ "image": {
54
+ "width_px": 2481,
55
+ "height_px": 3508,
56
+ "path": "/data/local-files/?d=unhcr_batch9/1_advocacy_note_mineaction_-_niger_eng.pdf_p002.png"
57
+ },
58
+ "objects": [
59
+ {
60
+ "id": "ac6cd9df",
61
+ "label": "Figure",
62
+ "bbox": [
63
+ 0.11501226471612505,
64
+ 0.3637891806647041,
65
+ 0.6170638714906183,
66
+ 0.6763495716446917
67
+ ]
68
+ },
69
+ {
70
+ "id": "156e5605",
71
+ "label": "Figure",
72
+ "bbox": [
73
+ 0.5019348136989036,
74
+ 0.08465351437695244,
75
+ 0.9329167705548818,
76
+ 0.26163565883054424
77
+ ]
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "page_id": "1_advocacy_note_mineaction_-_niger_eng.pdf::p003",
83
+ "doc_id": "1_advocacy_note_mineaction_-_niger_eng.pdf",
84
+ "page_index": 3,
85
+ "image": {
86
+ "width_px": 2481,
87
+ "height_px": 3508,
88
+ "path": "/data/local-files/?d=unhcr_batch9/1_advocacy_note_mineaction_-_niger_eng.pdf_p003.png"
89
+ },
90
+ "objects": [
91
+ {
92
+ "id": "f8307721",
93
+ "label": "Figure",
94
+ "bbox": [
95
+ 0.13599167892807285,
96
+ 0.2891531076669725,
97
+ 0.6823327173753422,
98
+ 0.6069814463330835
99
+ ]
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "page_id": "1_advocacy_note_mineaction_-_niger_eng.pdf::p004",
105
+ "doc_id": "1_advocacy_note_mineaction_-_niger_eng.pdf",
106
+ "page_index": 4,
107
+ "image": {
108
+ "width_px": 2481,
109
+ "height_px": 3508,
110
+ "path": "/data/local-files/?d=unhcr_batch9/1_advocacy_note_mineaction_-_niger_eng.pdf_p004.png"
111
+ },
112
+ "objects": [
113
+ {
114
+ "id": "7e134687",
115
+ "label": "Figure",
116
+ "bbox": [
117
+ 0.4198705654642365,
118
+ 0.08173203335187008,
119
+ 0.9219388149937009,
120
+ 0.23558702688120542
121
+ ]
122
+ }
123
+ ]
124
+ }
125
+ ]
126
+ }
annotations/unhcr/1_note_plaidoyer_lutte_antimines_-_niger_fr_annotations.json ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label_map": {
3
+ "1": "Figure",
4
+ "2": "Table"
5
+ },
6
+ "info": {
7
+ "schema_version": "1.3",
8
+ "type": "prediction",
9
+ "created_at": "2026-04-15T08:56:17Z",
10
+ "run_id": "unknown-combined-f41f207221",
11
+ "model": {},
12
+ "coordinate_system": {
13
+ "type": "normalized_xyxy",
14
+ "range": [
15
+ 0.0,
16
+ 1.0
17
+ ],
18
+ "origin": "top_left"
19
+ }
20
+ },
21
+ "documents": {
22
+ "doc_id": "1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf",
23
+ "doc_name": "1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf",
24
+ "doc_path": "pdf_input/1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf"
25
+ },
26
+ "predictions": [
27
+ {
28
+ "page_id": "1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf::p002",
29
+ "doc_id": "1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf",
30
+ "page_index": 2,
31
+ "image": {
32
+ "width_px": 2481,
33
+ "height_px": 3508,
34
+ "path": "/data/local-files/?d=unhcr_batch4/1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf_p002.png"
35
+ },
36
+ "objects": [
37
+ {
38
+ "id": "f6939669",
39
+ "label": "Figure",
40
+ "bbox": [
41
+ 0.10173095980014918,
42
+ 0.5104798828135715,
43
+ 0.5872497926424556,
44
+ 0.8085951881557614
45
+ ]
46
+ },
47
+ {
48
+ "id": "e25bd601",
49
+ "label": "Figure",
50
+ "bbox": [
51
+ 0.5362254107781641,
52
+ 0.0863331758853647,
53
+ 0.8860316924249294,
54
+ 0.4310685509015108
55
+ ]
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ "page_id": "1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf::p003",
61
+ "doc_id": "1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf",
62
+ "page_index": 3,
63
+ "image": {
64
+ "width_px": 2481,
65
+ "height_px": 3508,
66
+ "path": "/data/local-files/?d=unhcr_batch4/1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf_p003.png"
67
+ },
68
+ "objects": [
69
+ {
70
+ "id": "6d3484f8",
71
+ "label": "Figure",
72
+ "bbox": [
73
+ 0.14079719090376527,
74
+ 0.3932079229441068,
75
+ 0.6848430640048104,
76
+ 0.7131876986714888
77
+ ]
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "page_id": "1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf::p004",
83
+ "doc_id": "1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf",
84
+ "page_index": 4,
85
+ "image": {
86
+ "width_px": 2481,
87
+ "height_px": 3508,
88
+ "path": "/data/local-files/?d=unhcr_batch4/1_note_plaidoyer_lutte_antimines_-_niger_fr.pdf_p004.png"
89
+ },
90
+ "objects": [
91
+ {
92
+ "id": "daa237eb",
93
+ "label": "Figure",
94
+ "bbox": [
95
+ 0.35991928006594615,
96
+ 0.08633167958449876,
97
+ 0.9171604677086769,
98
+ 0.227889718895961
99
+ ]
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ }
annotations/unhcr/2_note_danalyse_de_protection_-_retour_de_pdi_a_teguy_annotations.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "label_map": {
3
+ "1": "Figure",
4
+ "2": "Table"
5
+ },
6
+ "info": {
7
+ "schema_version": "1.3",
8
+ "type": "prediction",
9
+ "created_at": "2026-04-15T08:56:17Z",
10
+ "run_id": "unknown-combined-f41f207221",
11
+ "model": {},
12
+ "coordinate_system": {
13
+ "type": "normalized_xyxy",
14
+ "range": [
15
+ 0.0,
16
+ 1.0
17
+ ],
18
+ "origin": "top_left"
19
+ }
20
+ },
21
+ "documents": {
22
+ "doc_id": "2_note_danalyse_de_protection_-_retour_de_pdi_a_teguy.pdf",
23
+ "doc_name": "2_note_danalyse_de_protection_-_retour_de_pdi_a_teguy.pdf",
24
+ "doc_path": "pdf_input/2_note_danalyse_de_protection_-_retour_de_pdi_a_teguy.pdf"
25
+ },
26
+ "predictions": []
27
+ }
metadata/prwp/3rp_annual_report_2023_metadata.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "report_url": "https://reliefweb.int/report/syrian-arab-republic/3rp-regional-refugee-and-resilience-plan-annual-report-2023",
3
+ "title": "3RP (Regional Refugee and Resilience Plan) - Annual Report 2023",
4
+ "Format": "Evaluation and Lessons Learned",
5
+ "Source": [
6
+ "R4V"
7
+ ],
8
+ "Posted": "16 Jul 2025",
9
+ "Originally published": "16 Jul 2025",
10
+ "Origin": "View original",
11
+ "Primary country": [
12
+ "Syrian Arab Republic"
13
+ ],
14
+ "Other countries": [
15
+ "Egypt",
16
+ "Iraq",
17
+ "Jordan",
18
+ "Lebanon",
19
+ "occupied Palestinian territory",
20
+ "Türkiye",
21
+ "World"
22
+ ],
23
+ "Themes": [
24
+ "Education",
25
+ "Food and Nutrition",
26
+ "Health",
27
+ "Protection and Human Rights",
28
+ "Recovery and Reconstruction",
29
+ "Shelter and Non-Food Items",
30
+ "Water Sanitation Hygiene"
31
+ ],
32
+ "Language": [
33
+ "English"
34
+ ],
35
+ "pdf_url": "https://reliefweb.int/attachments/bbef6510-952b-4d42-9631-d6b876dc6bf1/3RP_Annual_Report_2023_.pdf"
36
+ }
metadata/unhcr/1_advocacy_note_mineaction_-_niger_eng_metadata.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "report_url": "https://reliefweb.int/report/niger/advocacy-note-crucial-need-reinforce-actions-against-growing-threat-explosive-devices-ed-niger",
3
+ "title": "Advocacy note - a crucial need to reinforce actions against the growing threat of explosive devices (ED) in Niger",
4
+ "Format": "Analysis",
5
+ "Sources": [
6
+ "Health Cluster",
7
+ "WHO"
8
+ ],
9
+ "Posted": "1 Mar 2024",
10
+ "Originally published": "1 Mar 2024",
11
+ "Primary country": [
12
+ "Niger"
13
+ ],
14
+ "Themes": [
15
+ "Mine Action",
16
+ "Protection and Human Rights"
17
+ ],
18
+ "Language": [
19
+ "English"
20
+ ],
21
+ "Source": [
22
+ "OCHA"
23
+ ],
24
+ "pdf_url": "https://reliefweb.int/attachments/1613bd92-5065-4c7e-9263-f115ffea540f/1.%20Advocacy%20note%20MineAction%20-%20Niger_Eng.pdf"
25
+ }
metadata/unhcr/1_note_plaidoyer_lutte_antimines_-_niger_fr_metadata.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "report_url": "https://reliefweb.int/report/niger/note-de-plaidoyer-un-besoin-crucial-de-renforcement-des-actions-contre-la-menace-croissante-des-engins-explosifs-ee-au-niger",
3
+ "title": "Note de plaidoyer: un besoin crucial de renforcement des actions contre la ménace croissante des engins explosifs (EE) au Niger",
4
+ "Format": "Analysis",
5
+ "Sources": [
6
+ "Health Cluster",
7
+ "WHO"
8
+ ],
9
+ "Posted": "1 Mar 2024",
10
+ "Originally published": "1 Mar 2024",
11
+ "Primary country": [
12
+ "Niger"
13
+ ],
14
+ "Themes": [
15
+ "Mine Action",
16
+ "Protection and Human Rights"
17
+ ],
18
+ "Language": [
19
+ "French"
20
+ ],
21
+ "Source": [
22
+ "OCHA"
23
+ ],
24
+ "pdf_url": "https://reliefweb.int/attachments/246cc207-af41-430c-9600-6cdbb5448cbf/1.%20Note%20plaidoyer%20Lutte%20AntiMines%20-%20Niger_FR.pdf"
25
+ }
metadata/unhcr/2_note_danalyse_de_protection_-_retour_de_pdi_a_teguy_metadata.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "report_url": "https://reliefweb.int/report/niger/note-danalyse-de-protection-sur-le-retour-de-personnes-deplacees-internes-pdi-de-teguey",
3
+ "title": "Note d’analyse de protection sur le retour de personnes déplacées internes (PDI) de Teguey",
4
+ "Format": "News and Press Release",
5
+ "Sources": [
6
+ "ACF",
7
+ "ACTED",
8
+ "DRC",
9
+ "5 more"
10
+ ],
11
+ "Posted": "7 Oct 2025",
12
+ "Originally published": "7 Oct 2025",
13
+ "Primary country": [
14
+ "Niger"
15
+ ],
16
+ "Themes": [
17
+ "Food and Nutrition",
18
+ "Health",
19
+ "Protection and Human Rights",
20
+ "Water Sanitation Hygiene"
21
+ ],
22
+ "Language": [
23
+ "French"
24
+ ],
25
+ "Source": [
26
+ "UNHCR"
27
+ ],
28
+ "pdf_url": "https://reliefweb.int/attachments/a01ed30f-33d5-4db9-bd7e-d7d6a82e109c/2.%20Note%20d%27analyse%20de%20Protection%20-%20Retour%20de%20PDI%20a%20Teguy.pdf"
29
+ }
schemas/data-snapshot-eval-v1.3.schema.json ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://example.org/schemas/data-snapshot-eval-v1.3.schema.json",
4
+ "title": "Data Snapshot Evaluation Format (v1.3)",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["label_map", "info", "documents", "predictions"],
8
+
9
+ "properties": {
10
+ "label_map": {
11
+ "description": "Canonical mapping of integer label IDs to label names. Keys are strings that parse to positive integers.",
12
+ "type": "object",
13
+ "minProperties": 1,
14
+ "additionalProperties": false,
15
+ "patternProperties": {
16
+ "^[1-9][0-9]*$": { "type": "string", "minLength": 1 }
17
+ }
18
+ },
19
+
20
+ "info": {
21
+ "type": "object",
22
+ "additionalProperties": false,
23
+ "required": ["schema_version", "type", "coordinate_system"],
24
+ "properties": {
25
+ "schema_version": { "type": "string", "const": "1.3" },
26
+
27
+ "type": {
28
+ "description": "Whether this file is ground truth or model predictions.",
29
+ "type": "string",
30
+ "enum": ["ground_truth", "prediction"]
31
+ },
32
+
33
+ "dataset_id": {
34
+ "description": "Identifier for the dataset (required for ground truth).",
35
+ "type": "string",
36
+ "minLength": 1
37
+ },
38
+ "created_at": {
39
+ "description": "ISO8601 date or datetime string.",
40
+ "type": "string",
41
+ "minLength": 8
42
+ },
43
+
44
+ "run_id": {
45
+ "description": "Identifier for a prediction run (required for predictions).",
46
+ "type": "string",
47
+ "minLength": 1
48
+ },
49
+ "model": {
50
+ "description": "Model metadata (required for predictions).",
51
+ "type": "object",
52
+ "additionalProperties": true,
53
+ "required": ["name"],
54
+ "properties": {
55
+ "name": { "type": "string", "minLength": 1 },
56
+ "version": { "type": "string" },
57
+ "notes": { "type": "string" }
58
+ }
59
+ },
60
+
61
+ "coordinate_system": {
62
+ "type": "object",
63
+ "additionalProperties": false,
64
+ "required": ["type", "range", "origin"],
65
+ "properties": {
66
+ "type": { "type": "string", "const": "normalized_xyxy" },
67
+ "range": {
68
+ "description": "Fixed numeric range for normalized coordinates.",
69
+ "type": "array",
70
+ "minItems": 2,
71
+ "maxItems": 2,
72
+ "items": [{ "type": "number", "const": 0.0 }, { "type": "number", "const": 1.0 }]
73
+ },
74
+ "origin": { "type": "string", "const": "top_left" }
75
+ }
76
+ }
77
+ },
78
+ "allOf": [
79
+ {
80
+ "if": {
81
+ "properties": { "type": { "const": "ground_truth" } },
82
+ "required": ["type"]
83
+ },
84
+ "then": {
85
+ "required": ["dataset_id", "created_at"],
86
+ "properties": {
87
+ "run_id": false,
88
+ "model": false
89
+ }
90
+ }
91
+ },
92
+ {
93
+ "if": {
94
+ "properties": { "type": { "const": "prediction" } },
95
+ "required": ["type"]
96
+ },
97
+ "then": {
98
+ "required": ["run_id", "model"],
99
+ "properties": {
100
+ "dataset_id": false
101
+ }
102
+ }
103
+ }
104
+ ]
105
+ },
106
+
107
+ "documents": {
108
+ "type": "array",
109
+ "minItems": 1,
110
+ "items": {
111
+ "type": "object",
112
+ "additionalProperties": false,
113
+ "required": ["doc_id", "doc_name", "doc_path"],
114
+ "properties": {
115
+ "doc_id": { "type": "string", "minLength": 1 },
116
+ "doc_name": { "type": "string", "minLength": 1 },
117
+ "doc_path": { "type": "string", "minLength": 1 }
118
+ }
119
+ }
120
+ },
121
+
122
+ "predictions": {
123
+ "description": "Per-page container of objects. Used for both GT and predictions.",
124
+ "type": "array",
125
+ "minItems": 1,
126
+ "items": { "$ref": "#/$defs/pageEntry" }
127
+ }
128
+ },
129
+
130
+ "$defs": {
131
+ "bbox": {
132
+ "description": "Normalized [x1, y1, x2, y2] in [0,1].",
133
+ "type": "array",
134
+ "minItems": 4,
135
+ "maxItems": 4,
136
+ "items": [
137
+ { "type": "number", "minimum": 0.0, "maximum": 1.0 },
138
+ { "type": "number", "minimum": 0.0, "maximum": 1.0 },
139
+ { "type": "number", "minimum": 0.0, "maximum": 1.0 },
140
+ { "type": "number", "minimum": 0.0, "maximum": 1.0 }
141
+ ]
142
+ },
143
+
144
+ "imageInfo": {
145
+ "type": "object",
146
+ "additionalProperties": false,
147
+ "required": ["width_px", "height_px", "path"],
148
+ "properties": {
149
+ "width_px": { "type": "integer", "minimum": 1 },
150
+ "height_px": { "type": "integer", "minimum": 1 },
151
+ "path": { "type": "string", "minLength": 1 }
152
+ }
153
+ },
154
+
155
+ "objectBase": {
156
+ "type": "object",
157
+ "additionalProperties": false,
158
+ "required": ["id", "label", "bbox"],
159
+ "properties": {
160
+ "id": { "type": "string", "minLength": 1 },
161
+
162
+ "label": {
163
+ "description": "Human-readable label name (must be consistent with label_map; enforced in code).",
164
+ "type": "string",
165
+ "minLength": 1
166
+ },
167
+
168
+ "bbox": { "$ref": "#/$defs/bbox" },
169
+
170
+ "attributes": {
171
+ "description": "Optional free-form metadata (typically for GT).",
172
+ "type": "object",
173
+ "additionalProperties": true
174
+ },
175
+
176
+ "score": {
177
+ "description": "Confidence score in [0,1] (required for prediction objects; forbidden for GT objects).",
178
+ "type": "number",
179
+ "minimum": 0.0,
180
+ "maximum": 1.0
181
+ }
182
+ }
183
+ },
184
+
185
+ "pageEntry": {
186
+ "type": "object",
187
+ "additionalProperties": false,
188
+ "required": ["page_id", "doc_id", "page_index", "objects"],
189
+ "properties": {
190
+ "page_id": { "type": "string", "minLength": 1 },
191
+ "doc_id": { "type": "string", "minLength": 1 },
192
+ "page_index": { "type": "integer", "minimum": 0 },
193
+
194
+ "image": { "$ref": "#/$defs/imageInfo" },
195
+
196
+ "objects": {
197
+ "type": "array",
198
+ "items": { "$ref": "#/$defs/objectBase" }
199
+ }
200
+ }
201
+ }
202
+ },
203
+
204
+ "allOf": [
205
+ {
206
+ "description": "Ground truth pages must include image info; prediction pages must not include image info.",
207
+ "if": {
208
+ "properties": {
209
+ "info": {
210
+ "properties": { "type": { "const": "ground_truth" } },
211
+ "required": ["type"]
212
+ }
213
+ }
214
+ },
215
+ "then": {
216
+ "properties": {
217
+ "predictions": {
218
+ "items": { "required": ["image"] }
219
+ }
220
+ }
221
+ },
222
+ "else": {
223
+ "properties": {
224
+ "predictions": {
225
+ "items": {
226
+ "not": { "required": ["image"] }
227
+ }
228
+ }
229
+ }
230
+ }
231
+ },
232
+ {
233
+ "description": "Ground truth objects must not have score; prediction objects must have score.",
234
+ "if": {
235
+ "properties": {
236
+ "info": {
237
+ "properties": { "type": { "const": "ground_truth" } },
238
+ "required": ["type"]
239
+ }
240
+ }
241
+ },
242
+ "then": {
243
+ "properties": {
244
+ "predictions": {
245
+ "items": {
246
+ "properties": {
247
+ "objects": {
248
+ "items": {
249
+ "not": { "required": ["score"] }
250
+ }
251
+ }
252
+ }
253
+ }
254
+ }
255
+ }
256
+ },
257
+ "else": {
258
+ "properties": {
259
+ "predictions": {
260
+ "items": {
261
+ "properties": {
262
+ "objects": {
263
+ "items": { "required": ["score"] }
264
+ }
265
+ }
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ ]
272
+ }