Skip to content

Commit 376361e

Browse files
committed
Habermas dataset
1 parent cbdd70c commit 376361e

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

datasets/00026 - frenchapproval/metadata.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ file;file_number;last_modif;md5;modification_type;numAlt;numVot;numUniq;isApprov
33
00026-00000001.toc;1;2025-10-10 19:58:00.124720;dcb57064ae2afb8185571bbd9a42b077;original;16;365;216;True;False;True;True;N/A;N/A;N/A
44
00026-00000002.cat;2;2025-10-10 19:58:00.125852;6d2efb9cc7b66955c8a1800ced6f407a;original;16;409;240;True;N/A;True;N/A;N/A;N/A;N/A
55
00026-00000002.toc;2;2025-10-10 19:58:00.125852;f4e9426c61146b25f7ea17140c17e5a9;original;16;406;238;True;False;True;True;N/A;N/A;N/A
6-
00026-00000003.cat;3;2025-10-10 19:58:00.125852;b8e62caa2b758a4ac5889637008b7969;original;16;476;252;True;N/A;True;N/A;N/A;N/A;N/A
76
00026-00000003.toc;3;2025-10-10 19:58:00.127067;48d1208b02cbed67c724aab3d148cf66;original;16;476;252;True;False;True;True;N/A;N/A;N/A
8-
00026-00000004.cat;4;2025-10-10 19:58:00.127067;ce48983c6096e0a55907e94e0e0f798a;original;16;460;258;True;N/A;True;N/A;N/A;N/A;N/A
7+
00026-00000003.cat;3;2025-10-10 19:58:00.125852;b8e62caa2b758a4ac5889637008b7969;original;16;476;252;True;N/A;True;N/A;N/A;N/A;N/A
98
00026-00000004.toc;4;2025-10-10 19:58:00.127067;6abb5512ab9d270335c2407db216c1e1;original;16;460;258;True;False;True;True;N/A;N/A;N/A
10-
00026-00000005.cat;5;2025-10-10 19:58:00.127067;8559ebcfa55388f7f6d84533545b9a81;original;16;472;266;True;N/A;True;N/A;N/A;N/A;N/A
9+
00026-00000004.cat;4;2025-10-10 19:58:00.127067;ce48983c6096e0a55907e94e0e0f798a;original;16;460;258;True;N/A;True;N/A;N/A;N/A;N/A
1110
00026-00000005.toc;5;2025-10-10 19:58:00.128168;8a77eb3d056742a7450ff9b45347eff8;original;16;472;266;True;False;True;True;N/A;N/A;N/A
11+
00026-00000005.cat;5;2025-10-10 19:58:00.127067;8559ebcfa55388f7f6d84533545b9a81;original;16;472;266;True;N/A;True;N/A;N/A;N/A;N/A
1212
00026-00000006.toc;6;2025-10-10 19:58:00.128168;448a1e0e8df18027fa7a214d84a037f6;original;16;406;240;True;False;True;True;N/A;N/A;N/A
1313
00026-00000006.cat;6;2025-10-10 19:58:00.128168;c3d34956a545826b1c4707f446db9284;original;16;415;242;True;N/A;True;N/A;N/A;N/A;N/A

datasets/00070 - habermas/info.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ Name: Habermas Machine Deliberation
22

33
Abbreviation: habermas
44

5-
Tags: Deliberation
5+
Tags: Election,Deliberation
66

77
Series Number: 00070
88

99
Publication Date: 2025-10-12
1010

11-
Description: <p>This dataset collects the vote of participants in mini-jury experiments. For each mini-jury, five participants had to give their opinion on a specific topic and an LLM was used to generate four statements agregating the participants' opinions. Participants could then rank the different propositions, and Schulze's method was used to select the winning statement. The original data was <a href="https://github.com/google-deepmind/habermas_machine">collected by Google DeepMind</a>, and was converted to the appropriate format by <a href="https://theo.delemazure.fr/>Théo Delemazure</a></p>
11+
Description: <p>This dataset collects the vote of participants in mini-jury experiments. For each mini-jury, five participants had to give their opinion on a specific topic and an LLM was used to generate four statements agregating the participants' opinions. Participants could then rank the different propositions, and Schulze's method was used to select the winning statement. The original data was <a href="https://github.com/google-deepmind/habermas_machine">collected by Google DeepMind</a>, and was converted to the appropriate format by <a href="https://theo.delemazure.fr/>Théo Delemazure</a>.</p>
1212

1313
Required Citations: Michael Henry Tessler et al. <em>AI can help humans find common ground in democratic deliberation</em>. Science 386, 2024.
1414

scripts/zipall.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def zip_all():
1818
relevant_properties = ("isApproval", "isStrict", "isComplete", "isSP", "isSC", "isSPTree")
1919
prop_to_files = {t: [] for t in relevant_properties}
2020

21-
for dataset_dir in sorted(os.listdir(IN_DIR)):
21+
for dataset_dir in sorted(os.listdir(IN_DIR), reverse=True):
2222
print(f"Reading {dataset_dir}")
2323
ds_files = []
2424

@@ -51,26 +51,26 @@ def zip_all():
5151
with zipfile.ZipFile(os.path.join(OUT_DIR, dataset.replace(" - ", "_") + ".zip"), "w", zipfile.ZIP_DEFLATED) as zip_file:
5252
for file_path in all_files:
5353
zip_file.write(file_path, os.path.basename(file_path))
54-
55-
for modif_type, all_files in modif_to_files.items():
56-
print(f"Zipping {modif_type}")
57-
with zipfile.ZipFile(os.path.join(OUT_DIR, "modif_" + modif_type + ".zip"), "w", zipfile.ZIP_DEFLATED) as zip_file:
58-
for file_path in all_files:
59-
zip_file.write(file_path, os.path.basename(file_path))
60-
61-
for data_type, all_files in type_to_files.items():
62-
print(f"Zipping {data_type}")
63-
with zipfile.ZipFile(os.path.join(OUT_DIR, "type_" + data_type + ".zip"), "w",
64-
zipfile.ZIP_DEFLATED) as zip_file:
65-
for file_path in all_files:
66-
zip_file.write(file_path, os.path.basename(file_path))
67-
68-
for prop, all_files in prop_to_files.items():
69-
print(f"Zipping {prop}")
70-
with zipfile.ZipFile(os.path.join(OUT_DIR, "prop_" + prop + ".zip"), "w",
71-
zipfile.ZIP_DEFLATED) as zip_file:
72-
for file_path in all_files:
73-
zip_file.write(file_path, os.path.basename(file_path))
54+
#
55+
# for modif_type, all_files in modif_to_files.items():
56+
# print(f"Zipping {modif_type}")
57+
# with zipfile.ZipFile(os.path.join(OUT_DIR, "modif_" + modif_type + ".zip"), "w", zipfile.ZIP_DEFLATED) as zip_file:
58+
# for file_path in all_files:
59+
# zip_file.write(file_path, os.path.basename(file_path))
60+
#
61+
# for data_type, all_files in type_to_files.items():
62+
# print(f"Zipping {data_type}")
63+
# with zipfile.ZipFile(os.path.join(OUT_DIR, "type_" + data_type + ".zip"), "w",
64+
# zipfile.ZIP_DEFLATED) as zip_file:
65+
# for file_path in all_files:
66+
# zip_file.write(file_path, os.path.basename(file_path))
67+
#
68+
# for prop, all_files in prop_to_files.items():
69+
# print(f"Zipping {prop}")
70+
# with zipfile.ZipFile(os.path.join(OUT_DIR, "prop_" + prop + ".zip"), "w",
71+
# zipfile.ZIP_DEFLATED) as zip_file:
72+
# for file_path in all_files:
73+
# zip_file.write(file_path, os.path.basename(file_path))
7474

7575

7676
if __name__ == "__main__":

0 commit comments

Comments
 (0)