The dataset viewer is not available for this dataset.
Error code: ConfigNamesError
Exception: FileNotFoundError
Message: Couldn't find any data file at /src/services/worker/himibraa/AlgerianLegalBench. Couldn't find 'himibraa/AlgerianLegalBench' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/himibraa/AlgerianLegalBench@59ed369684ad3cd203e0f2b93b9e901e30fd7ad1/data/test.jsonl' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.lance', '.tsfile', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 67, in compute_config_names_response
config_names = get_dataset_config_names(
path=dataset,
token=hf_token,
)
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
dataset_module = dataset_module_factory(
path,
...<4 lines>...
**download_kwargs,
)
File "/usr/local/lib/python3.14/site-packages/datasets/load.py", line 1213, in dataset_module_factory
raise FileNotFoundError(
...<2 lines>...
) from None
FileNotFoundError: Couldn't find any data file at /src/services/worker/himibraa/AlgerianLegalBench. Couldn't find 'himibraa/AlgerianLegalBench' on the Hugging Face Hub either: FileNotFoundError: Unable to find 'hf://datasets/himibraa/AlgerianLegalBench@59ed369684ad3cd203e0f2b93b9e901e30fd7ad1/data/test.jsonl' with any supported extension ['.csv', '.tsv', '.json', '.jsonl', '.ndjson', '.parquet', '.geoparquet', '.gpq', '.arrow', '.txt', '.conll', '.conllu', '.tar', '.xml', '.hdf5', '.h5', '.eval', '.lance', '.tsfile', '.blp', '.bmp', '.dib', '.bufr', '.cur', '.pcx', '.dcx', '.dds', '.ps', '.eps', '.fit', '.fits', '.fli', '.flc', '.ftc', '.ftu', '.gbr', '.gif', '.grib', '.png', '.apng', '.jp2', '.j2k', '.jpc', '.jpf', '.jpx', '.j2c', '.icns', '.ico', '.im', '.iim', '.tif', '.tiff', '.jfif', '.jpe', '.jpg', '.jpeg', '.mpg', '.mpeg', '.msp', '.pcd', '.pxr', '.pbm', '.pgm', '.ppm', '.pnm', '.psd', '.bw', '.rgb', '.rgba', '.sgi', '.ras', '.tga', '.icb', '.vda', '.vst', '.webp', '.wmf', '.emf', '.xbm', '.xpm', '.BLP', '.BMP', '.DIB', '.BUFR', '.CUR', '.PCX', '.DCX', '.DDS', '.PS', '.EPS', '.FIT', '.FITS', '.FLI', '.FLC', '.FTC', '.FTU', '.GBR', '.GIF', '.GRIB', '.PNG', '.APNG', '.JP2', '.J2K', '.JPC', '.JPF', '.JPX', '.J2C', '.ICNS', '.ICO', '.IM', '.IIM', '.TIF', '.TIFF', '.JFIF', '.JPE', '.JPG', '.JPEG', '.MPG', '.MPEG', '.MSP', '.PCD', '.PXR', '.PBM', '.PGM', '.PPM', '.PNM', '.PSD', '.BW', '.RGB', '.RGBA', '.SGI', '.RAS', '.TGA', '.ICB', '.VDA', '.VST', '.WEBP', '.WMF', '.EMF', '.XBM', '.XPM', '.aiff', '.au', '.avr', '.caf', '.flac', '.htk', '.svx', '.mat4', '.mat5', '.mpc2k', '.ogg', '.paf', '.pvf', '.raw', '.rf64', '.sd2', '.sds', '.ircam', '.voc', '.w64', '.wav', '.nist', '.wavex', '.wve', '.xi', '.mp3', '.opus', '.3gp', '.3g2', '.avi', '.asf', '.flv', '.mp4', '.mov', '.m4v', '.mkv', '.webm', '.f4v', '.wmv', '.wma', '.ogm', '.mxf', '.nut', '.AIFF', '.AU', '.AVR', '.CAF', '.FLAC', '.HTK', '.SVX', '.MAT4', '.MAT5', '.MPC2K', '.OGG', '.PAF', '.PVF', '.RAW', '.RF64', '.SD2', '.SDS', '.IRCAM', '.VOC', '.W64', '.WAV', '.NIST', '.WAVEX', '.WVE', '.XI', '.MP3', '.OPUS', '.3GP', '.3G2', '.AVI', '.ASF', '.FLV', '.MP4', '.MOV', '.M4V', '.MKV', '.WEBM', '.F4V', '.WMV', '.WMA', '.OGM', '.MXF', '.NUT', '.glb', '.ply', '.stl', '.GLB', '.PLY', '.STL', '.pdf', '.PDF', '.nii', '.NII', '.zip', '.idx', '.manifest', '.txn']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.
AlgerianLegalBench
Dataset Description
AlgerianLegalBench is the first evaluation benchmark specifically designed for legal information retrieval systems operating on Algerian law. It addresses three challenges absent from existing benchmarks:
- Jurisdictional infection — models trained on French, Egyptian, US, or Tunisian legal corpora import foreign legal rules into Algerian answers
- The linguistic trinity — questions in Modern Standard Arabic (232), Legal French (12), and Algerian Darja
- Temporal legal drift — amendments that change the law while models retain outdated rules
Key Statistics
| Property | Value |
|---|---|
| Total questions | 244 |
| Answerable | 204 (83.6%) |
| Unanswerable (infection traps) | 40 (16.4%) |
| Legal categories | 23 |
| Query types | 8 |
| Languages | AR (232), FR (12) |
| Test split | 182 |
| Dev split | 62 |
| Laws in document registry | 30 |
| Inter-annotator κ | 0.829 |
Unanswerable Questions: Foreign-Law Infection Traps
The 40 unanswerable questions probe 7 jurisdictional sources:
| Source | Count | Example concepts |
|---|---|---|
| French | 13 | ISF, rent control, EURL, SAS, garde à vue duration, rupture conventionnelle |
| US | 11 | at-will employment, punitive damages, fair use, jury trial, LWOP |
| Egyptian | 4 | Mandatory bequest, civil marriage officer, pretrial detention |
| Tunisian | 3 | Polygamy ban, adoption plénière, commercial courts |
| UK | 3 | Consideration, duty of care, civil jury |
| Gulf | 2 | Kafeel system, exit permit |
| Algerian absence | 3 | Auto-saisine, municipal taxing, death penalty for corruption |
Evaluation Metrics
Standard: Precision@1, MRR, Citation F1
Novel:
- Jurisdictional Infection Rate (JIR) — % of unanswerable questions where model affirms foreign concept
- Hallucinated Citation Rate (HCR) — % of responses citing non-existent articles
Query Types
| Type | Count | Purpose |
|---|---|---|
| Rule application | 66 | Apply law to facts |
| Exact article | 59 | Pure statutory retrieval |
| Unanswerable | 40 | Foreign-law traps |
| Multi-hop | 26 | Cross-code reasoning |
| Long context | 17 | Synthesize 4+ articles |
| Layman/Darja | 17 | Non-technical queries |
| Conceptual | 12 | Legal definitions |
| Temporal | 7 | Amendment tracking |
Schema
Each question contains:
{
"id": "fam_ra_q01",
"version": "3.0",
"category": "family_law",
"query_type": "rule_application",
"difficulty": "medium",
"language": "ar",
"question": "...",
"answerable": true,
"expected_documents": ["84-11_1984-06-09"],
"expected_articles": [{"document_id": "...", "article_ref": "54", ...}],
"ground_truth_answer": "...",
"reasoning_chain": ["Step 1 — ...", "Step 2 — ...", "Step 3 — ...", "Step 4 — ..."],
"temporal_note": null,
"annotation": {"annotator_1": "Islam Slimi", "annotator_2": "Ziad Slimi", "kappa": 0.91, ...}
}
Citation
@inproceedings{slimi2026algerianlegal,
title={AlgerianLegalBench: A Native Benchmark for Evaluating Legal Information Retrieval and Jurisdictional Faithfulness in Algerian Law},
author={Slimi, Islam and Slimi, Ziad and {Supervisor}},
booktitle={Proceedings of the ArabicNLP 2026 Conference},
year={2026}
}
Annotation
All questions were authored and cross-annotated by Islam Slimi and Ziad Slimi (law students at Faculty of Law and Political Sciences, University M'Hamed Bougara of Boumerdes, Boumerdes, Algeria). Inter-annotator agreement (Cohen's κ): overall 0.829, easy 0.979, medium 0.904, hard 0.659. Disagreements resolved by senior expert.
License
CC BY 4.0
Contact
ibrahim.attia@ensia.edu.dz maab.chaoui@ensia.edu.dz i.slimi@univ-boumerdes.dz z.slimi@univ-boumerdes.dz
- Downloads last month
- 3