code / legex /analysis /countries.py
anonymous
[code] Reproduction bundle.
2e511b5
Raw
History Blame Contribute Delete
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",
}