WideChaos commited on
Commit
62c1e29
·
verified ·
1 Parent(s): 0138b62

Polish dataset card and add bilingual evaluation cover

Browse files

Add the shared cover, Chinese overview, Hub quick start, file guide and tutorial links. Keep evaluation data, scoring rules, license and explicit JSONL split unchanged.

Files changed (2) hide show
  1. README.md +47 -6
  2. cover.png +3 -0
README.md CHANGED
@@ -31,6 +31,22 @@ configs:
31
 
32
  # Bilingual Patch Contracts
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  A small public diagnostic set for one question: when a model is told to apply a few edits to a JSON state and return **only** the new JSON object, does it get every value right, and does that change when the instructions are written in English, Chinese, or code-switched Chinese-English?
35
 
36
  Valid JSON is not enough. The cases probe corrections ("set to 90, then correct it to zero"), negation, `null` versus `"null"` versus `""`, tag order and case, unit conversion to integer minutes, conditionals evaluated mid-sequence, instruction-like text that must be stored literally, and Unicode/backslash escaping.
@@ -75,13 +91,34 @@ Every state has the keys `route` (`"email"`, `"sms"` or `"none"`), `delay_minute
75
 
76
  ## Files
77
 
78
- - `patch_contracts.jsonl` (UTF-8, one object per line), the canonical file
79
- - `patch_contracts.csv` (UTF-8, all cells quoted, states as JSON text)
80
- - `manifest.json`: version, source file SHA-256, counts, field descriptions and data-file hashes
81
- - `strict_scorer.py`: the strict scorer (standard library only)
82
- - `LICENSE` (Apache License 2.0 full text) and `NOTICE` (copyright and provenance)
 
 
83
 
84
- ## Loading
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
 
86
  Standard library only:
87
 
@@ -122,6 +159,10 @@ All prompts, states and answers are original synthetic material that I wrote for
122
  - One fixed schema with five keys; it does not cover tool calling, nested objects, long contexts, latency or general multilingual ability.
123
  - Answers are public and may appear in future training data, which would make scores on this set uninformative.
124
 
 
 
 
 
125
  ## License and attribution
126
 
127
  Everything in this release, data and code alike, is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) (Apache-2.0), full text in `LICENSE`. This keeps the license under which the public Kaggle benchmark was already released; this release does not relicense it. Copyright 2026 Renchao Wu; keep `NOTICE` when redistributing.
 
31
 
32
  # Bilingual Patch Contracts
33
 
34
+ ![Bilingual Patch Contracts: English, Chinese and mixed-language inputs with strict JSON evaluation](cover.png)
35
+
36
+ Strict JSON state-update diagnostics in English, Chinese and mixed Chinese-English.
37
+
38
+ [Run the scoring tutorial on Kaggle](https://www.kaggle.com/code/xover2022/bilingual-patch-contracts-strict-scorer) · [Kaggle dataset](https://www.kaggle.com/datasets/xover2022/bilingual-patch-contracts-dataset) · [Original benchmark and model runs](https://www.kaggle.com/benchmarks/xover2022/bilingual-patch-contracts)
39
+
40
+ ## 中文导读
41
+
42
+ 这个小型诊断集检查模型能否按顺序修改 JSON 状态,并准确返回规定的字段、类型和值。十二个语义场景各含英文、中文和中英混合版本,共 36 条提示,覆盖纠正、否定、空值、列表、单位换算、条件和字面量处理。
43
+
44
+ 使用 `prompt` 作为完整模型输入,以 `expected_state` 为标准答案。CSV 中的状态列需用 `json.loads` 解析;JSONL 中则直接是对象。按 `pair_id` 比较同一场景的三个语言版本。自然语言规则和指令随语言变化,JSON 字段名与路由枚举统一使用英文。
45
+
46
+ 答案全部公开,三个语言版本相互关联。它适合定位结构化输出问题;小样本结果不能推导通用模型排名。数据集没有新增模型成绩,Notebook 中的合成示例用于验证评分程序。
47
+
48
+ ## Overview
49
+
50
  A small public diagnostic set for one question: when a model is told to apply a few edits to a JSON state and return **only** the new JSON object, does it get every value right, and does that change when the instructions are written in English, Chinese, or code-switched Chinese-English?
51
 
52
  Valid JSON is not enough. The cases probe corrections ("set to 90, then correct it to zero"), negation, `null` versus `"null"` versus `""`, tag order and case, unit conversion to integer minutes, conditionals evaluated mid-sequence, instruction-like text that must be stored literally, and Unicode/backslash escaping.
 
91
 
92
  ## Files
93
 
94
+ - [`patch_contracts.jsonl`](patch_contracts.jsonl): canonical UTF-8 dataset, one object per line; initial and expected states are JSON objects
95
+ - [`patch_contracts.csv`](patch_contracts.csv): the same 36 rows as quoted UTF-8 CSV; state columns are JSON text
96
+ - [`manifest.json`](manifest.json): version, source SHA-256, counts, field definitions and data-file hashes
97
+ - [`strict_scorer.py`](strict_scorer.py): strict JSON parser, schema validation and exact-value scoring; Python standard library only
98
+ - [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE): Apache-2.0 terms, copyright, attribution and provenance
99
+ - `README.md`: dataset card, usage, scoring and limitations
100
+ - `cover.png`: cover artwork; excluded from the evaluation split by the explicit JSONL configuration
101
 
102
+ ## Quick start
103
+
104
+ Load directly from the Hub:
105
+
106
+ ```python
107
+ from datasets import load_dataset
108
+
109
+ ds = load_dataset(
110
+ "WideChaos/bilingual-patch-contracts",
111
+ split="evaluation",
112
+ )
113
+ assert len(ds) == 36
114
+ print(ds[0]["prompt"])
115
+ ```
116
+
117
+ For reproducible reports, pass `revision="<commit-sha>"` to pin the dataset version. Evaluate the complete `prompt` without appending `expected_state` to the input. Keep failed calls in the denominator and report paired results across the three languages.
118
+
119
+ The [Kaggle notebook](https://www.kaggle.com/code/xover2022/bilingual-patch-contracts-strict-scorer) demonstrates the strict scorer and a response-file adapter. It runs offline and uses labeled synthetic fixtures; those fixture scores are not model measurements.
120
+
121
+ ### Local files
122
 
123
  Standard library only:
124
 
 
159
  - One fixed schema with five keys; it does not cover tool calling, nested objects, long contexts, latency or general multilingual ability.
160
  - Answers are public and may appear in future training data, which would make scores on this set uninformative.
161
 
162
+ ## Maintenance and feedback
163
+
164
+ This is dataset version 1.0.0, a fixed diagnostic release. Documentation and presentation updates do not change the prompts or answers. For a suspected error, [open a discussion](https://huggingface.co/datasets/WideChaos/bilingual-patch-contracts/discussions) with the prompt `id`, expected behavior and a minimal reproduction. Remove private prompts, credentials and user data before posting.
165
+
166
  ## License and attribution
167
 
168
  Everything in this release, data and code alike, is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) (Apache-2.0), full text in `LICENSE`. This keeps the license under which the public Kaggle benchmark was already released; this release does not relicense it. Copyright 2026 Renchao Wu; keep `NOTICE` when redistributing.
cover.png ADDED

Git LFS Details

  • SHA256: 3c07940e069d31b5895b400a4646baea048456d44565f8ec73da6f462d06c518
  • Pointer size: 132 Bytes
  • Size of remote file: 1.33 MB