Download legex/analysis/countries.py from legexbenchmark/code: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/datasets/legexbenchmark/code/resolve/main/legex/analysis/countries.py
- Command line
-
hf download hf://datasets/legexbenchmark/code/legex/analysis/countries.py
-
curl -L -o countries.py https://huggingface.co/datasets/legexbenchmark/code/resolve/main/legex/analysis/countries.py
1.09 kB
| """Country sets and display names shared across the analysis and paper scripts.""" | |
| # The 19 jurisdictions of the public release (HF legexbenchmark/goldensets). | |
| # data/ also contains non-release drafts (al, at, gh, it, li, lu, xk) which | |
| # must be excluded from every paper aggregate. | |
| RELEASE_COUNTRIES: tuple[str, ...] = ( | |
| "am", "au", "be", "br", "ch", "de", "es", "fr", "ge", "hk", | |
| "in", "np", "nz", "ph", "rs", "sg", "tw", "uk", "us", | |
| ) | |
| # Core benchmark: >=100 judgments AND independent reannotations (three | |
| # annotators each). Nepal and Spain reach 100+ cases but are single-annotated. | |
| CORE_COUNTRIES: tuple[str, ...] = ("br", "ch", "de", "ge", "sg", "tw", "uk", "us") | |
| COUNTRY_NAMES: dict[str, str] = { | |
| "am": "Armenia", "au": "Australia", "be": "Belgium", "br": "Brazil", | |
| "ch": "Switzerland", "de": "Germany", "es": "Spain", "fr": "France", | |
| "ge": "Georgia", "hk": "Hong Kong", "in": "India", "np": "Nepal", | |
| "nz": "New Zealand", "ph": "Philippines", "rs": "Serbia", | |
| "sg": "Singapore", "tw": "Taiwan", "uk": "United Kingdom", | |
| "us": "United States", | |
| } | |