Mirror pinned upstream RuTaR with Parquet and source attribution
Browse files- .gitattributes +1 -0
- README.md +96 -0
- data/test.parquet +3 -0
- manifest.json +14 -0
- original/rutar.xlsx +3 -0
- sources/sources_dataset_for_rutar.json +0 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
original/rutar.xlsx filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- ru
|
| 4 |
+
task_categories:
|
| 5 |
+
- text-classification
|
| 6 |
+
tags:
|
| 7 |
+
- legal
|
| 8 |
+
- taxes
|
| 9 |
+
- reasoning
|
| 10 |
+
pretty_name: RuTaR (Russian Tax Reasoning)
|
| 11 |
+
size_categories:
|
| 12 |
+
- n<1K
|
| 13 |
+
configs:
|
| 14 |
+
- config_name: default
|
| 15 |
+
data_files:
|
| 16 |
+
- split: test
|
| 17 |
+
path: data/test.parquet
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# RuTaR — Russian Tax Reasoning
|
| 21 |
+
|
| 22 |
+
This is a format mirror of [rutar-anonymous/RuTaR](https://github.com/rutar-anonymous/RuTaR), attributed to
|
| 23 |
+
its upstream authors. It contains Russian tax questions derived from letters
|
| 24 |
+
of the Russian Ministry of Finance and Federal Tax Service. Original binary
|
| 25 |
+
labels are preserved: **1 = yes, 0 = no**.
|
| 26 |
+
|
| 27 |
+
## Original source and attribution
|
| 28 |
+
|
| 29 |
+
- [Upstream repository and documentation](https://github.com/rutar-anonymous/RuTaR)
|
| 30 |
+
- [Exact upstream commit](https://github.com/rutar-anonymous/RuTaR/tree/76c6ef0cafe89fe1b400b673478066108b0493ac)
|
| 31 |
+
- [Original workbook](https://github.com/rutar-anonymous/RuTaR/blob/76c6ef0cafe89fe1b400b673478066108b0493ac/rutar.xlsx)
|
| 32 |
+
- [Original reference-source corpus](https://github.com/rutar-anonymous/RuTaR/blob/76c6ef0cafe89fe1b400b673478066108b0493ac/sources_dataset_for_rutar.json)
|
| 33 |
+
- Individual government-letter links are retained in `source_url`, with
|
| 34 |
+
document titles, dates and issuing body in each record. One source URL is missing upstream.
|
| 35 |
+
|
| 36 |
+
The upstream snapshot does not include a license file or a license statement.
|
| 37 |
+
This mirror does not assert or grant a new license; consult the original
|
| 38 |
+
repository/authors for reuse terms. No author identity, paper citation or
|
| 39 |
+
license has been inferred from the anonymous repository name.
|
| 40 |
+
|
| 41 |
+
## Files and preservation
|
| 42 |
+
|
| 43 |
+
- `data/test.parquet`: all **209** nonempty workbook records, in original order.
|
| 44 |
+
- `original/rutar.xlsx`: byte-for-byte original workbook (SHA-256 `5ce0824ea3d806c2475ac2d1880cfd1795a34ff1ac31a65b94a14d75cd136dc7`).
|
| 45 |
+
- `sources/sources_dataset_for_rutar.json`: byte-for-byte original RAG corpus,
|
| 46 |
+
**480** citation-to-text entries.
|
| 47 |
+
- `manifest.json`: upstream revision, file checksums and conversion version.
|
| 48 |
+
|
| 49 |
+
`test` is a packaging split for the complete upstream table; upstream supplies
|
| 50 |
+
no train/test split. No questions, duplicates or gold labels are removed here.
|
| 51 |
+
Blank question at ID `119` and duplicate questions at IDs `114`/`117` remain
|
| 52 |
+
available for auditing. Empty worksheet rows are omitted.
|
| 53 |
+
|
| 54 |
+
The unnamed workbook index becomes a stable string `id`. `true_answer` becomes
|
| 55 |
+
an integer 0/1. Other original columns remain strings with blank cells represented
|
| 56 |
+
as null. `found_sources` retains its original string representation of a list.
|
| 57 |
+
Dates remain original strings. Original XLSX is retained for exact source recovery.
|
| 58 |
+
|
| 59 |
+
## Columns
|
| 60 |
+
|
| 61 |
+
| Column | Meaning |
|
| 62 |
+
|---|---|
|
| 63 |
+
| `id` | Original workbook numeric index, represented as a string |
|
| 64 |
+
| `title` | Government document title |
|
| 65 |
+
| `date_publication` | Original document publication date |
|
| 66 |
+
| `full_text` | Full original letter, including its answer |
|
| 67 |
+
| `question_letter` / `answer_letter` | Question/answer parsed from the letter |
|
| 68 |
+
| `letter_type` | Issuing body (`minfin` or Federal Tax Service identifier) |
|
| 69 |
+
| `source_url` | Link to the original government document |
|
| 70 |
+
| `question_for_llm` | Upstream prepared yes/no question (one null) |
|
| 71 |
+
| `found_sources` | Original string list of references; texts are in the source corpus |
|
| 72 |
+
| `true_answer` | Gold: 1 yes, 0 no |
|
| 73 |
+
|
| 74 |
+
## Loading
|
| 75 |
+
|
| 76 |
+
```python
|
| 77 |
+
from datasets import load_dataset
|
| 78 |
+
rows = load_dataset("RefalMachine/RuTaR", split="test")
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
Pin `revision` to a Hub commit for reproducible evaluation. HF caches the Parquet
|
| 82 |
+
snapshot locally, so ordinary repeated runs reuse downloaded files.
|
| 83 |
+
|
| 84 |
+
## Evaluation considerations
|
| 85 |
+
|
| 86 |
+
The full letters and their parsed answers contain evidence used to author the
|
| 87 |
+
questions; feeding them into a closed-book prompt leaks gold information.
|
| 88 |
+
For closed-book evaluation, use only `question_for_llm` plus an explicit answer
|
| 89 |
+
instruction, and keep demonstration questions/documents separate from evaluation.
|
| 90 |
+
LLMTF reserves IDs 0–4 as a fixed demonstration pool, drops missing question 119
|
| 91 |
+
and duplicate 117, and evaluates 202 questions for both zero-shot and five-shot.
|
| 92 |
+
That is an LLMTF protocol, not an upstream split or a reproduction of upstream RAG.
|
| 93 |
+
|
| 94 |
+
Labels refer to the source documents and their historical dates; they have not
|
| 95 |
+
been rewritten to reflect current tax law. This mirror preserves upstream
|
| 96 |
+
annotations and does not add legal expert validation.
|
data/test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da6cf232b3b513ef37284b6c5f7f807e6e77e643235a4006d62cb3ee25b4de8e
|
| 3 |
+
size 425075
|
manifest.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repository": "RefalMachine/RuTaR",
|
| 3 |
+
"upstream_repository": "https://github.com/rutar-anonymous/RuTaR",
|
| 4 |
+
"upstream_revision": "76c6ef0cafe89fe1b400b673478066108b0493ac",
|
| 5 |
+
"upstream_filename": "rutar.xlsx",
|
| 6 |
+
"upstream_sha256": "5ce0824ea3d806c2475ac2d1880cfd1795a34ff1ac31a65b94a14d75cd136dc7",
|
| 7 |
+
"row_count": 209,
|
| 8 |
+
"filename": "data/test.parquet",
|
| 9 |
+
"parquet_sha256": "da6cf232b3b513ef37284b6c5f7f807e6e77e643235a4006d62cb3ee25b4de8e",
|
| 10 |
+
"sources_sha256": "085c20a0febef97f9e12ec86dd5ad1381ea06aa858b8d6542f11faffad24bb6c",
|
| 11 |
+
"source_count": 480,
|
| 12 |
+
"format_version": "rutar_lossless_parquet_v1",
|
| 13 |
+
"pyarrow_version": "25.0.1"
|
| 14 |
+
}
|
original/rutar.xlsx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ce0824ea3d806c2475ac2d1880cfd1795a34ff1ac31a65b94a14d75cd136dc7
|
| 3 |
+
size 252051
|
sources/sources_dataset_for_rutar.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|