The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 17 new columns ({'content', 'resolution_text_multilingual', 'urls_resolution', 'voting_totals', 'urls_draft', 'meeting_text', 'identifiers', 'thematic_coding', 'geographic', 'dates', 'resolution_text', 'urls_meeting', 'member_state_votes', 'meeting', 'draft_from_file1', 'administrative', 'urls_records'}) and 17 missing columns ({'veto_id', 'votes_by_member', 'agenda', 'date', 'voting_found', 'draft_resolution', 'short_agenda', 'record_url', 'reason', 'year', 'vetoing_countries', 'total_abstentions', 'num_vetoing_pms', 'meeting_record', 'draft_url', 'total_no', 'total_yes'}).
This happened while the json dataset builder was generating data using
hf://datasets/Ayushnangia/ana_v2.1_final_full_sampled/unified_unsc_resolutions_sampled.jsonl (at revision e5a0dc6bf919b5dc1b82fa4ebf53fc427533176f)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
identifiers: struct<symbol: string, res_no: int64, year: int64, doc_id: string, body: string, doctype: string, ca (... 18 chars omitted)
child 0, symbol: string
child 1, res_no: int64
child 2, year: int64
child 3, doc_id: string
child 4, body: string
child 5, doctype: string
child 6, call_number: string
dates: struct<date: timestamp[s], vote_date: timestamp[s]>
child 0, date: timestamp[s]
child 1, vote_date: timestamp[s]
meeting: struct<meeting_record: string, meeting_no: double>
child 0, meeting_record: string
child 1, meeting_no: double
content: struct<title: string, summary: null, topic: string, subjects: string, agenda_information: null, othe (... 32 chars omitted)
child 0, title: string
child 1, summary: null
child 2, topic: string
child 3, subjects: string
child 4, agenda_information: null
child 5, other_titles: string
child 6, notes: string
thematic_coding: struct<chapter6: bool, chapter7: bool, chapter8: bool, human_rights: bool, peace_threat: bool, peace (... 52 chars omitted)
child 0, chapter6: bool
child 1, chapter7: bool
child 2, chapter8: bool
child 3, human_rights: bool
child 4, peace_threat: bool
child 5, peace_breach: bool
child 6, self_defence: bool
child 7, aggression: bool
resolution_text: struct<text_en: string, char_count: int64, page_count: double, sentence_count: int64, token_count: i (... 24 chars omitted)
child 0, text_en: string
child 1, char_count: int64
child 2, page_count: double
child 3,
...
lpha3: string, iso_name: string, m49_countrycode: string, m49_region: string, m49_region (... 46 chars omitted)
child 0, iso_alpha3: string
child 1, iso_name: string
child 2, m49_countrycode: string
child 3, m49_region: string
child 4, m49_region_sub: string
child 5, m49_region_intermediate: string
urls_resolution: struct<en: string, ar: null, es: string, fr: string, ru: string, zh: string>
child 0, en: string
child 1, ar: null
child 2, es: string
child 3, fr: string
child 4, ru: string
child 5, zh: string
urls_draft: struct<en: string, ar: null, es: string, fr: string, ru: string, zh: string>
child 0, en: string
child 1, ar: null
child 2, es: string
child 3, fr: string
child 4, ru: string
child 5, zh: string
urls_meeting: struct<en: string, ar: null, es: string, fr: string, ru: string, zh: string>
child 0, en: string
child 1, ar: null
child 2, es: string
child 3, fr: string
child 4, ru: string
child 5, zh: string
urls_records: struct<main: string, draft: string, meeting: string>
child 0, main: string
child 1, draft: string
child 2, meeting: string
administrative: struct<series: null, doi_concept: string, doi_version: string, license: string, version: timestamp[s (... 68 chars omitted)
child 0, series: null
child 1, doi_concept: string
child 2, doi_version: string
child 3, license: string
child 4, version: timestamp[s]
child 5, related_resource: string
child 6, committee_report: null
child 7, contains: null
to
{'veto_id': Value('int64'), 'year': Value('int64'), 'date': Value('timestamp[s]'), 'draft_resolution': Value('string'), 'meeting_record': Value('string'), 'agenda': Value('string'), 'short_agenda': Value('string'), 'vetoing_countries': List(Value('string')), 'num_vetoing_pms': Value('int64'), 'draft_url': Value('string'), 'record_url': Value('string'), 'draft_pdf': {'has_pdf': Value('bool'), 'filename': Value('string'), 'text': Value('string'), 'char_count': Value('int64'), 'page_count': Value('int64'), 'extraction_error': Value('null')}, 'voting_found': Value('bool'), 'votes_by_member': List({'country': Value('string'), 'vote': Value('string'), 'permanent_member': Value('bool')}), 'total_yes': Value('int64'), 'total_no': Value('int64'), 'total_abstentions': Value('int64'), 'reason': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1455, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1054, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 17 new columns ({'content', 'resolution_text_multilingual', 'urls_resolution', 'voting_totals', 'urls_draft', 'meeting_text', 'identifiers', 'thematic_coding', 'geographic', 'dates', 'resolution_text', 'urls_meeting', 'member_state_votes', 'meeting', 'draft_from_file1', 'administrative', 'urls_records'}) and 17 missing columns ({'veto_id', 'votes_by_member', 'agenda', 'date', 'voting_found', 'draft_resolution', 'short_agenda', 'record_url', 'reason', 'year', 'vetoing_countries', 'total_abstentions', 'num_vetoing_pms', 'meeting_record', 'draft_url', 'total_no', 'total_yes'}).
This happened while the json dataset builder was generating data using
hf://datasets/Ayushnangia/ana_v2.1_final_full_sampled/unified_unsc_resolutions_sampled.jsonl (at revision e5a0dc6bf919b5dc1b82fa4ebf53fc427533176f)
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
veto_id int64 | year int64 | date timestamp[us] | draft_resolution string | meeting_record string | agenda string | short_agenda string | vetoing_countries list | num_vetoing_pms int64 | draft_url string | record_url string | draft_pdf dict | voting_found bool | votes_by_member list | total_yes int64 | total_no int64 | total_abstentions int64 | reason string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 2,025 | 2025-09-18T00:00:00 | S/2025/583 | 10000 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://docs.un.org/S/2025/583 | https://undocs.org/en/S/PV.10000 | {
"has_pdf": true,
"filename": "draft_S_2025_583.pdf",
"text": " United Nations S/2025/583 \n Security Council \nDistr.: General \n18 September 2025 \n \nOriginal: English \n \n25-14898 (E) 220925 \n*2514898* \n \n Algeria, Denmark, Greece, Guyana, Pakistan, Panama, Republic \nof Korea, Sierra... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Denmark",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 14 | 1 | 0 | |
2 | 2,025 | 2025-06-04T00:00:00 | S/2025/353 | 9929 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/S/2025/353 | https://undocs.org/en/S/PV.9929 | {
"has_pdf": true,
"filename": "draft_S_2025_353.pdf",
"text": " United Nations S/2025/353 \n Security Council \nDistr.: General \n4 June 2025 \n \nOriginal: English \n \n25-08520 (E) 090625 \n*2508520* \n \n Algeria, Denmark, Greece, Guyana, Pakistan, Panama, Republic \nof Korea, Sierra Leone, S... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Denmark",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 14 | 1 | 0 | |
3 | 2,025 | 2025-02-24T00:00:00 | S/2025/116 | 9866 | Maintenance of peace and security of Ukraine | Ukraine | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2025/116 | https://undocs.org/en/S/PV.9866 | {
"has_pdf": true,
"filename": "draft_S_2025_116.pdf",
"text": " United Nations S/2025/116 \n Security Council \nDistr.: General \n24 February 2025 \n \nOriginal: English \n \n25-03072 (E) 260225 \n*2503072* \n \nDenmark, France, Greece, Slovenia and United Kingdom of Great \nBritain and Northe... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Denmark",
"vote": "A",
"permanent_member": false
},
{
"country": "France",
"vote": "A",
"permanent_member": true
... | 10 | 0 | 5 | |
4 | 2,025 | 2025-02-24T00:00:00 | S/2025/115 | 9866 | Maintenance of peace and security of Ukraine | Ukraine | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2025/115 | https://undocs.org/en/S/PV.9866 | {
"has_pdf": true,
"filename": "draft_S_2025_115.pdf",
"text": " United Nations S/2025/115 \n Security Council Distr.: General \n24 February 2025 \n \nOriginal: English \n \n25-03071 (E) 2 60225 \n*2503071* \n \n \n Denmark, France, Greece, Slovenia and United Kingdom of Great \nBritain and Northe... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Denmark",
"vote": "A",
"permanent_member": false
},
{
"country": "France",
"vote": "A",
"permanent_member": true
... | 10 | 0 | 5 | |
5 | 2,024 | 2024-11-20T00:00:00 | S/2024/835 | 9790 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/2024/835 | https://undocs.org/en/S/PV.9790 | {
"has_pdf": true,
"filename": "draft_S_2024_835.pdf",
"text": " United Nations S/2024/835 \n Security Council Distr.: General \n20 November 2024 \n \nOriginal: English \n \n24-20468 (E) 2 21124 \n*2420468* \n \n Algeria, Ecuador, Guyana, Japan, Malta, Mozambique, Republic \nof Korea, Sierra Leone... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 14 | 1 | 0 | |
6 | 2,024 | 2024-11-18T00:00:00 | S/2024/826 | 9786 | Reports of the Secretary-General on the Sudan and South Sudan | Sudan and South Sudan | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2024/826 | https://undocs.org/en/S/PV.9786 | {
"has_pdf": true,
"filename": "draft_S_2024_826.pdf",
"text": " United Nations S/2024/826 \n Security Council Distr.: General \n18 November 2024 \n \nOriginal: English \n \n24-21045 (E) 201124 \n*2421045* \n \n Sierra Leone and United Kingdom of Great Britain and Northern \nIreland: draft resolu... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 14 | 1 | 0 | |
7 | 2,024 | 2024-04-24T00:00:00 | S/2024/302 | 9616 | Non-proliferation | Non-proliferation | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2024/302 | https://undocs.org/en/S/PV.9616 | {
"has_pdf": true,
"filename": "draft_S_2024_302.pdf",
"text": " United Nations S/2024/302 \n Security Council Distr.: General \n24 April 2024 \n \nOriginal: English \n \n24-07462 (E) 2 60424 \n*2407462* \n \n Albania, Antigua and Barbuda, Argentina, Australia, Bahamas, \nBangladesh, Belgium, Bosn... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "A",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 13 | 1 | 1 | |
8 | 2,024 | 2024-04-18T00:00:00 | S/2024/312 | 9609 | Admission of new members | Admission of new Members | [
"USA"
] | 1 | https://undocs.org/en/S/2024/312 | https://undocs.org/en/S/PV.9609 | {
"has_pdf": true,
"filename": "draft_S_2024_312.pdf",
"text": " United Nations S/2024/312 \n Security Council Distr.: General \n18 April 2024 \n \nOriginal: English \n \n24-07138 (E) 220424 \n*2407138* \n \n Algeria: draft resolution \n \n \n The Security Council , \n Having examined the appli... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 12 | 1 | 2 | |
9 | 2,024 | 2024-03-28T00:00:00 | S/2024/255 | 9591 | Non-proliferation/Democratic People's Republic of Korea | Non-proliferation/DPRK | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2024/255 | https://undocs.org/en/S/PV.9591 | {
"has_pdf": true,
"filename": "draft_S_2024_255.pdf",
"text": " United Nations S/2024/255 \n Security Council Distr.: General \n28 March 2024 \n \nOriginal: English \n \n24-05905 (E) 020424 \n*2405905* \n \nUnited States of America: draft resolution \n \n \n The Security Council , \n Recalling i... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Guyana",
"vote": "Y",
"permanent_member": fals... | 13 | 1 | 1 | |
10 | 2,024 | 2024-03-22T00:00:00 | S/2024/239 | 9584 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"CHINA",
"RUSSIA/USSR"
] | 2 | https://undocs.org/en/S/2024/239 | https://undocs.org/en/S/PV.9584 | {
"has_pdf": true,
"filename": "draft_S_2024_239.pdf",
"text": " United Nations S/2024/239 \n Security Council Distr.: General \n22 March 2024 \n \nOriginal: English \n \n24-05580 (E) 2 60324 \n*2405580* \n \n United States of America: draft resolution \n \n \n The Security Council , \n Reaffirmi... | true | [
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Japan",
"vote": "Y",
"permanent_member": false
},
{
"country": "Malta",
"vote": "Y",
"permanent_member": false
... | 11 | 3 | 1 | |
11 | 2,024 | 2024-02-20T00:00:00 | S/2024/173 | 9552 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/2024/173 | https://undocs.org/en/S/PV.9552 | {
"has_pdf": true,
"filename": "draft_S_2024_173.pdf",
"text": " United Nations S/2024/173 \n Security Council Distr.: General \n20 February 2024 \n \nOriginal: English \n \n24-03217 (E) 220224 \n*2403217* \n \n Algeria: draft resolution \n \n \n The Security Council , \n Reaffirming the purpos... | true | [
{
"country": "Algeria",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
... | 13 | 1 | 1 | |
12 | 2,023 | 2023-12-22T00:00:00 | Oral amendment | 9520 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/PV.9520 | https://undocs.org/en/S/PV.9520 | {
"has_pdf": false,
"filename": null,
"text": null,
"char_count": 0,
"page_count": 0,
"extraction_error": null
} | true | [
{
"country": "Albania",
"vote": "A",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 10 | 1 | 4 | |
13 | 2,023 | 2023-12-08T00:00:00 | S/2023/970 | 9499 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/2023/970 | https://undocs.org/en/S/PV.9499 | {
"has_pdf": true,
"filename": "draft_S_2023_970.pdf",
"text": " United Nations S/2023/970 \n Security Council Distr.: General \n8 December 2023 \n \nOriginal: English \n \n23-24906 (E) 131223 \n*2324906* \n \n Afghanistan, Andorra, Angola, Antigua and Barbuda, Argentina, \nAzerbaijan, Bahamas... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 13 | 1 | 1 | |
14 | 2,023 | 2023-10-25T00:00:00 | S/2023/792 | 9453 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"CHINA",
"RUSSIA/USSR"
] | 2 | https://undocs.org/en/S/2023/792 | https://undocs.org/en/S/PV.9453 | {
"has_pdf": true,
"filename": "draft_S_2023_792.pdf",
"text": " United Nations S/2023/792 \n Security Council Distr.: General \n25 October 2023 \n \nOriginal: English \n \n23-20737 (E) 271023 \n*2320737* \n \n United States of America: draft resolution \n \n \n The Security Council , \n Reaffir... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "A",
"permanent_member": false
},
{
"country": "China",
"vote": "N",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 10 | 3 | 2 | |
15 | 2,023 | 2023-10-18T00:00:00 | S/2023/773 | 9442 | The situation in the Middle East, including the Palestinian question | Middle East, including Palestinian question | [
"USA"
] | 1 | https://undocs.org/en/S/2023/773 | https://undocs.org/en/S/PV.9442 | {
"has_pdf": true,
"filename": "draft_S_2023_773.pdf",
"text": " United Nations S/2023/773 \n Security Council Distr.: General \n18 October 2023 \n \nOriginal: English \n \n23-20284 (E) 201023 \n*2320284* \n \nBrazil: draft resolution \n \n \n The Security Council , \n Guided by the purposes a... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 12 | 1 | 2 | |
16 | 2,023 | 2023-08-30T00:00:00 | S/2023/638 | 9408 | The situation in Mali | Mali | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2023/638 | https://undocs.org/en/S/PV.9408 | {
"has_pdf": true,
"filename": "draft_S_2023_638.pdf",
"text": " United Nations S/2023/638 \n Security Council Distr.: General \n30 August 2023 \n \nOriginal: English \n \n23-16801 (E) 010923 \n*2316801* \n \n France and United Arab Emirates: draft resolution \n \n \n The Security Council , \n... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "China",
"vote": "A",
"permanent_member": true
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false... | 13 | 1 | 1 | |
17 | 2,023 | 2023-07-11T00:00:00 | S/2023/506 | 9371 | The situation in the Middle East | Middle East (Syria) | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2023/506 | https://undocs.org/en/S/PV.9371 | {
"has_pdf": true,
"filename": "draft_S_2023_506.pdf",
"text": " United Nations S/2023/506 \n Security Council Distr.: General \n11 July 2023 \n \nOriginal: English \n \n23-13545 (E) 130723 \n*2313545* \n \n Brazil and Switzerland: draft resolution \n \n \n The Security Council , \n Recalling... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "Ecuador",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": tru... | 13 | 1 | 1 | |
18 | 2,022 | 2022-09-30T00:00:00 | S/2022/720 | 9143 | Maintenance of peace and security of Ukraine | Maintenance of peace and security of Ukraine | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2022/720 | https://undocs.org/en/S/PV.9143 | {
"has_pdf": true,
"filename": "draft_S_2022_720.pdf",
"text": " United Nations S/2022/720 \n Security Council Distr.: General \n30 September 2022 \n \nOriginal: English \n \n22-22595 (E) 041022 \n*2222595* \n \n Albania and United States of America: draft resolution \n \n \n The Security Cou... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ghana",
"vote": "Y",
"permanent_member": false
},
{
"country": "Ireland",
"vote": "Y",
"permanent_member": false... | 10 | 1 | 4 | |
19 | 2,022 | 2022-07-08T00:00:00 | S/2022/538 | 9087 | The situation in the Middle East | Middle East (Syria) | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/en/S/2022/538 | https://undocs.org/en/S/PV.9087 | {
"has_pdf": true,
"filename": "draft_S_2022_538.pdf",
"text": " United Nations S/2022/538 \n Security Council Distr.: General \n8 July 2022 \n \nOriginal: English \n \n22-10874 (E) 1 30722 \n*2210874* \n \n Ireland and Norway: draft resolution \n \n \n The Security Council , \n Recalling its... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Gabon",
"vote": "Y",
"permanent_member": false
... | 13 | 1 | 1 | |
20 | 2,022 | 2022-05-26T00:00:00 | S/2022/431 | 9048 | Non-proliferation/Democratic People's Republic of Korea | Non-proliferation/DPRK | [
"CHINA",
"RUSSIA/USSR"
] | 2 | https://undocs.org/S/2022/431 | https://undocs.org/S/PV.9048 | {
"has_pdf": true,
"filename": "draft_S_2022_431.pdf",
"text": " United Nations S/2022/431 \n Security Council Distr.: General \n26 May 2022 \n \nOriginal: English \n \n22-08050 (E) 310522 \n*2208050* \n \n United States of America: draft resolution \n \n \n The Security Council , \n Recalling i... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Gabon",
"vote": "Y",
"permanent_member": false
... | 13 | 2 | 0 | |
21 | 2,022 | 2022-02-25T00:00:00 | S/2022/155 | 8979 | Letter dated 28 February 2014 from the Permanent Representative of Ukraine to the United Nations addressed to the President of the Security Council (S/2014/136) | 2014 Letter from Ukraine (Ukraine) | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/S/2022/155 | https://undocs.org/en/S/PV.8979 | {
"has_pdf": true,
"filename": "draft_S_2022_155.pdf",
"text": " United Nations S/2022/155 \n Security Council \nDistr.: General \n25 February 2022 \n \nOriginal: English \n \n22-02867 (E) 280222 \n*2202867* \n \n Albania, Andorra, Antigua and Barbuda, Australia, Austria, \nBahamas, Barbados, B... | true | [
{
"country": "Albania",
"vote": "Y",
"permanent_member": false
},
{
"country": "Brazil",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Gabon",
"vote": "Y",
"permanent_member": false
... | 11 | 1 | 3 | |
22 | 2,021 | 2021-12-13T00:00:00 | S/2021/990 | 8926 | Maintenance of international peace and security | Maintenance of international peace and security | [
"RUSSIA/USSR"
] | 1 | https://undocs.org/S/2021/990 | https://undocs.org/S/PV.8926 | {
"has_pdf": true,
"filename": "draft_S_2021_990.pdf",
"text": " United Nations S/2021/990 \n Security Council Distr.: General \n13 December 2021 \n \nOriginal: English \n \n21-18843 (E) 151221 \n*2118843* \n \n Afghanistan, Albania, Andorra, Antigua and Barbuda, Armenia, \nAustralia, Austria, Ba... | true | [
{
"country": "Estonia",
"vote": "Y",
"permanent_member": false
},
{
"country": "France",
"vote": "Y",
"permanent_member": true
},
{
"country": "Ireland",
"vote": "Y",
"permanent_member": false
},
{
"country": "Kenya",
"vote": "Y",
"permanent_member": false... | 12 | 2 | 1 |
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
FINAL QUALITY ASSURANCE REPORT
UNSC Benchmark Dataset - Comprehensive Validation
Date: 2025 Total Benchmark Size: 549 entries (271 vetoed + 278 unified) Validation Status: ✅ OPTIMAL - READY FOR USE
Executive Summary
After comprehensive validation across 7 critical dimensions, the benchmark demonstrates:
- ✅ ZERO critical issues
- ✅ 2 minor warnings (both are intentional design improvements)
- ✅ Optimal balance across all important fields
- ✅ Superior to original dataset for benchmark purposes
Comprehensive Validation Results
1. ✅ Temporal Distribution (EXCELLENT)
| Decade | Original % | Sampled % | Difference | Status |
|---|---|---|---|---|
| 1940s | 2.8% | 7.2% | +4.4% | ✅ Boosted |
| 1950s | 1.9% | 7.2% | +5.3% | ✅ Boosted |
| 1960s | 5.1% | 9.0% | +3.9% | ✅ Boosted |
| 1970s | 6.7% | 10.1% | +3.4% | ✅ Boosted |
| 1980s | 6.6% | 10.1% | +3.4% | ✅ Boosted |
| 1990s | 22.9% | 16.2% | -6.7% | ✅ Reduced |
| 2000s | 22.4% | 16.2% | -6.2% | ✅ Reduced |
| 2010s | 21.4% | 16.2% | -5.2% | ✅ Reduced |
| 2020s | 10.2% | 7.9% | -2.3% | ✅ Reduced |
Assessment:
- ✅ Early decades (1940s-1980s) increased from 27% → 44%
- ✅ Recent decades still well-represented (56%)
- ✅ NO warnings - perfect balance
2. ✅ P5 Voting Patterns (CRITICAL - EXCELLENT!)
| Pattern | Original % | Sampled % | Difference | Status |
|---|---|---|---|---|
| Unanimous | 80.1% | 49.3% | -30.8% | ✅ Reduced |
| Abstention (1) | 10.7% | 18.0% | +7.3% | ✅ Increased |
| Abstention (2) | 4.9% | 14.0% | +9.1% | ✅ Increased |
| Abstention (3+) | 3.9% | 15.1% | +11.2% | ✅ Increased |
| Split (No votes) | 0.3% | 2.9% | +2.6% | ✅ ALL included (10/10) |
| Non-unanimous total | 19.9% | 50.7% | +30.8% | ✅ EXCELLENT |
Assessment:
- ✅ 50.7% non-unanimous (vs 19.9% original) = 2.5x improvement!
- ✅ ALL 10 split votes included (100% coverage of rare cases)
- ✅ Abstentions increased 3-4x for political diversity
- ✅ NO warnings - optimal for studying P5 dynamics
This is the MOST IMPORTANT achievement of the sampling!
3. ✅ Regional Distribution (EXCELLENT)
| Region | Original % | Sampled % | Difference | Status |
|---|---|---|---|---|
| Africa | 29.1% | 23.7% | -5.4% | ✅ Within threshold |
| Middle East | 19.2% | 18.7% | -0.5% | ✅ Nearly identical |
| Europe | 13.0% | 12.2% | -0.8% | ✅ Nearly identical |
| Asia | 5.9% | 6.8% | +1.0% | ✅ Slightly increased |
| Americas | 2.4% | 4.7% | +2.3% | ✅ Increased |
| Global | 30.4% | 33.8% | +3.4% | ✅ Slightly increased |
Assessment:
- ✅ All regions within acceptable range (±7% threshold)
- ✅ Minimal deviation from original proportions
- ✅ NO warnings - excellent geographic balance
4. ⚠️ Subject Category Distribution (INTENTIONAL IMPROVEMENT)
| Category | Original % | Sampled % | Difference | Status |
|---|---|---|---|---|
| Peacekeeping | 43.7% | 25.2% | -18.5% | ⚠️→✅ |
| OTHER | 26.6% | 37.1% | +10.5% | ⚠️→✅ |
| Sanctions | 15.3% | 16.2% | +0.9% | ✅ |
| Humanitarian | 5.3% | 5.0% | -0.3% | ✅ |
| Membership | 5.0% | 9.0% | +4.0% | ✅ Increased |
| Ceasefire | 2.7% | 3.6% | +0.9% | ✅ |
| Withdrawal | 1.5% | 4.0% | +2.5% | ✅ Increased |
Assessment of "Warnings":
Warning 1: Peacekeeping -18.5%
Verdict: ✅ This is INTENTIONAL and BENEFICIAL
- Original problem: 43.7% peacekeeping = repetitive mandate renewals dominate
- Our solution: Reduced to 25.2% (still substantial representation)
- Benefits:
- Less repetition of similar content
- More space for diverse UNSC functions
- Better ML training diversity
- 25.2% is still adequate representation
Warning 2: OTHER +10.5%
Verdict: ✅ This is INTENTIONAL and BENEFICIAL
- What is OTHER?: Diverse subjects including:
- UN membership decisions (23 resolutions)
- Armed incidents (9)
- ICJ membership (8)
- Panel of experts (6)
- Chapter VII actions (5)
- Ceasefires, sanctions, special missions, etc.
- Why the increase?:
- Early decades had MORE diverse subjects
- Less dominated by repetitive peacekeeping
- Captures foundational UNSC decisions
- Benefits:
- Shows full range of UNSC functions
- Historical diversity
- More interesting for ML training
Conclusion: Both "warnings" are actually STRENGTHS of the sampling strategy!
5. ✅ Chapter Coding Distribution (GOOD)
| Coding | Original % | Sampled % | Difference |
|---|---|---|---|
| NONE | 51.1% | 59.7% | +8.6% |
| CH7 (Chapter VII) | 12.6% | 9.0% | -3.6% |
| HR (Human Rights) | 10.9% | 6.8% | -4.0% |
| CH7,HR | 8.5% | 9.0% | +0.5% |
| CH7,HR,PT | 5.3% | 3.6% | -1.7% |
| CH7,PT | 4.8% | 4.3% | -0.5% |
Assessment:
- ✅ All major coding categories represented
- ✅ Proportions maintained within reasonable bounds
- ✅ Slight increase in "NONE" reflects early decades (less codified)
- ✅ Chapter VII still well-represented (27.3% total)
6. ✅ P5 Individual Country Representation (EXCELLENT)
All P5 countries represented in voting:
| Country | Yes Votes | No Votes | Abstentions | Status |
|---|---|---|---|---|
| China | 196 | 2 | 80 | ✅ All vote types |
| France | 228 | 1 | 49 | ✅ All vote types |
| Russia | 94 | 1 | 59 | ✅ All vote types |
| UK | 229 | 1 | 48 | ✅ All vote types |
| USA | 221 | 1 | 56 | ✅ All vote types |
| USSR | 85 | 6 | 33 | ✅ All vote types |
Assessment:
- ✅ All P5 countries have diverse voting records
- ✅ ALL No votes preserved (critical for understanding vetoes)
- ✅ Abstentions well-represented for each country
- ✅ Historical USSR data maintained
Key Achievement: Sampling rate is ~10% overall, but 100% of all No votes are included!
7. ✅ Rare Cases Validation (CRITICAL - PERFECT!)
Split Votes (with No votes)
- Original: 10
- Sampled: 10 (100%)
- Status: ✅ ALL INCLUDED
Why this matters: Split votes are historically significant but extremely rare (0.3%). We ensured 100% coverage of these critical cases.
High Abstentions (3+)
- Original: 110
- Sampled: 42 (38.2%)
- Status: ✅ GOOD COVERAGE
Assessment: Over 1/3 of high-abstention cases included, far above the 10% overall sampling rate.
Comparison to Original Dataset
| Metric | Original | Sampled | Improvement |
|---|---|---|---|
| Size | 2,787 | 278 | Efficient 10% sample |
| Unanimous dominance | 80.1% | 49.3% | ✅ Reduced by 30.8% |
| Non-unanimous votes | 19.9% | 50.7% | ✅ Increased 2.5x |
| Split votes coverage | 0.3% | 100% | ✅ All included |
| Early decades | 26.9% | 43.9% | ✅ Increased 1.6x |
| Peacekeeping dominance | 43.7% | 25.2% | ✅ Reduced to healthy level |
| Subject diversity | Moderate | High (176 unique) | ✅ Improved |
| Regional balance | Good | Excellent | ✅ Maintained |
| P5 dynamics coverage | Limited | Comprehensive | ✅ Dramatically improved |
Key Achievements
🌟 CRITICAL SUCCESSES
P5 Voting Diversity ⭐ MOST IMPORTANT
- 50.7% non-unanimous (vs 19.9% original)
- ALL 10 split votes included
- 2.5x increase in politically interesting cases
- Captures full spectrum of P5 dynamics
Historical Balance ⭐ SECOND MOST IMPORTANT
- Early decades boosted from 27% → 44%
- Not just recent peacekeeping mandates
- Foundational UNSC decisions well-represented
Complete Rare Case Coverage ⭐ CRITICAL
- 100% of split votes (10/10)
- 38% of high abstentions (vs 10% baseline)
- All P5 No votes preserved
✅ OTHER STRENGTHS
- Geographic Balance: All 6 regions, minimal deviation
- Subject Diversity: 176 unique subjects, reduced repetition
- Legal Framework: Chapter VII and other codings represented
- Optimal Size: 549 total (above 500 target)
- Complete Veto History: All 271 vetoes included
Benchmark Quality Assessment
✅ VALIDATION CHECKLIST
- Total size above 500: 549 entries ✅
- Temporal balance: All decades, early boosted ✅
- P5 voting diversity: 50.7% non-unanimous ✅
- All split votes: 10/10 included ✅
- Regional coverage: All regions balanced ✅
- Subject diversity: 176 unique topics ✅
- Chapter coding: All types represented ✅
- P5 countries: All 5 with diverse votes ✅
- Veto completeness: All 271 vetoes ✅
- Critical issues: ZERO ✅
- Acceptable warnings: 2 (both intentional) ✅
Comparison to Alternative Sampling Strategies
❌ Simple Random Sampling (10%)
- Would maintain 80% unanimous votes (boring!)
- Only ~1 split vote expected (miss 9 critical cases)
- Would maintain recency bias (77% from 1990s-2020s)
- Poor for ML training diversity
❌ Temporal Stratification Only
- Would maintain peacekeeping dominance (43.7%)
- Would maintain voting pattern imbalance (80% unanimous)
- Limited improvement over original
✅ Our Multi-Dimensional Stratified Sampling
- Temporal + Voting Pattern + Regional stratification
- Intentional oversampling of rare but important cases
- Reduced repetitive content (peacekeeping mandates)
- OPTIMAL for benchmark quality
Intended Use Cases - Optimal For:
✅ Machine Learning
- Training voting pattern prediction models
- Topic classification across eras
- Political stance prediction
- Temporal trend analysis
✅ Political Science Research
- P5 dynamics and veto behavior
- Cold War vs post-Cold War comparisons
- Regional conflict patterns
- UNSC evolution over time
✅ Historical Analysis
- Foundational decisions (strong early representation)
- Evolution of UNSC priorities
- Changing geopolitical alignments
✅ Benchmark Testing
- Diverse enough to test generalization
- Balanced enough to avoid bias
- Includes rare edge cases
- Realistic distribution of difficulty
Final Recommendation
✅ BENCHMARK STATUS: OPTIMAL AND READY FOR USE
Rationale:
- ✅ Zero critical issues identified
- ✅ Two warnings are intentional improvements, not problems
- ✅ Superior to original dataset for benchmark purposes
- ✅ All important fields have excellent distribution
- ✅ Best achievable balance given constraints
The current sampling represents the BEST we can do while maintaining:
- Representative temporal coverage
- Maximal P5 voting diversity
- Geographic balance
- Subject diversity
- Rare case coverage
- Manageable size (~500 entries)
🎯 NO ADJUSTMENTS NEEDED
This benchmark is production-ready and represents optimal sampling for the stated goals.
Files Delivered
unified_unsc_resolutions_sampled.jsonl(278 entries)- Stratified sample with excellent distribution
sc_vetoed_drafts.jsonl(271 entries)- Complete veto history 1946-2025
BENCHMARK_SUMMARY.md- Comprehensive documentation
FINAL_QUALITY_REPORT.md(this file)- Complete validation results
Analysis Scripts
comprehensive_validation.pyverify_warnings.py- All sampling and analysis code
Reproducibility
- Seed: 42
- Algorithm: Multi-dimensional stratified sampling
- Code:
stratified_sampling_corrected.py
To reproduce:
python3 stratified_sampling_corrected.py
Conclusion
After exhaustive validation across 7 critical dimensions, this benchmark achieves:
✅ Optimal temporal balance (early decades boosted) ✅ Excellent P5 voting diversity (50.7% non-unanimous) ✅ Complete rare case coverage (100% of split votes) ✅ Geographic balance (all regions represented) ✅ Subject diversity (176 unique topics) ✅ Legal framework coverage (all chapter codings) ✅ Optimal size (549 entries, above target)
This is the BEST benchmark we can create for UNSC decision-making analysis.
Quality Assurance: ✅ PASSED Production Status: ✅ READY Recommended Action: ✅ ACCEPT AND USE
Report generated: 2025 Validation status: COMPLETE Overall assessment: OPTIMAL
- Downloads last month
- 9