Download legex/models/base.py from legexbenchmark/code: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/datasets/legexbenchmark/code/resolve/main/legex/models/base.py
- Command line
-
hf download hf://datasets/legexbenchmark/code/legex/models/base.py
-
curl -L -o base.py https://huggingface.co/datasets/legexbenchmark/code/resolve/main/legex/models/base.py
469 Bytes
| from datetime import date | |
| from typing import Any | |
| from pydantic import BaseModel | |
| class Case(BaseModel): | |
| case_id: str | None = None | |
| link: str | None = None | |
| decision_date: date | None = None | |
| jurisdiction: str # ISO country code: "ch", "fr", etc. | |
| language: str | None = None # ISO 639-1: "de", "fr", "it", "en" | |
| full_text: str | None = None # populated in jsonl mode only | |
| metadata: dict[str, Any] = {} # jurisdiction-specific extra fields | |