Rebuild three English decisions and remove evaluation-only CLadder
Browse files- README.md +32 -20
- data/test-00000-of-00001.parquet +2 -2
- data/train-00000-of-00005.parquet +2 -2
- data/train-00001-of-00005.parquet +2 -2
- data/train-00002-of-00005.parquet +2 -2
- data/train-00003-of-00005.parquet +2 -2
- data/train-00004-of-00005.parquet +2 -2
- data/validation-00000-of-00001.parquet +2 -2
- english-task-rebuild.json +0 -0
- english-task-rebuild.py +183 -0
- filtered-full/train-00000-of-00013.parquet +2 -2
- filtered-full/train-00001-of-00013.parquet +2 -2
- filtered-full/train-00002-of-00013.parquet +2 -2
- filtered-full/train-00003-of-00013.parquet +2 -2
- filtered-full/train-00004-of-00013.parquet +2 -2
- filtered-full/train-00005-of-00013.parquet +2 -2
- filtered-full/train-00006-of-00013.parquet +2 -2
- filtered-full/train-00007-of-00013.parquet +2 -2
- filtered-full/train-00008-of-00013.parquet +2 -2
- filtered-full/train-00009-of-00013.parquet +2 -2
- filtered-full/train-00010-of-00013.parquet +2 -2
- filtered-full/train-00011-of-00013.parquet +2 -2
- filtered-full/train-00012-of-00013.parquet +2 -2
- full/test-00000-of-00001.parquet +2 -2
- full/train-00000-of-00013.parquet +2 -2
- full/train-00001-of-00013.parquet +2 -2
- full/train-00002-of-00013.parquet +2 -2
- full/train-00003-of-00013.parquet +2 -2
- full/train-00004-of-00013.parquet +2 -2
- full/train-00005-of-00013.parquet +2 -2
- full/train-00006-of-00013.parquet +2 -2
- full/train-00007-of-00013.parquet +2 -2
- full/train-00008-of-00013.parquet +2 -2
- full/train-00009-of-00013.parquet +2 -2
- full/train-00010-of-00013.parquet +2 -2
- full/train-00011-of-00013.parquet +2 -2
- full/train-00012-of-00013.parquet +2 -2
- full/validation-00000-of-00001.parquet +2 -2
- release-audit.json +0 -0
- sources.yaml +0 -0
README.md
CHANGED
|
@@ -80,16 +80,16 @@ dataset_info:
|
|
| 80 |
dtype: string
|
| 81 |
splits:
|
| 82 |
- name: train
|
| 83 |
-
num_bytes:
|
| 84 |
-
num_examples:
|
| 85 |
- name: validation
|
| 86 |
-
num_bytes:
|
| 87 |
-
num_examples:
|
| 88 |
- name: test
|
| 89 |
-
num_bytes:
|
| 90 |
-
num_examples:
|
| 91 |
-
download_size:
|
| 92 |
-
dataset_size:
|
| 93 |
- config_name: filtered-full
|
| 94 |
features:
|
| 95 |
- name: state
|
|
@@ -120,10 +120,10 @@ dataset_info:
|
|
| 120 |
dtype: string
|
| 121 |
splits:
|
| 122 |
- name: train
|
| 123 |
-
num_bytes:
|
| 124 |
-
num_examples:
|
| 125 |
-
download_size:
|
| 126 |
-
dataset_size:
|
| 127 |
- config_name: full
|
| 128 |
features:
|
| 129 |
- name: state
|
|
@@ -156,16 +156,16 @@ dataset_info:
|
|
| 156 |
dtype: string
|
| 157 |
splits:
|
| 158 |
- name: train
|
| 159 |
-
num_bytes:
|
| 160 |
-
num_examples:
|
| 161 |
- name: validation
|
| 162 |
-
num_bytes:
|
| 163 |
-
num_examples:
|
| 164 |
- name: test
|
| 165 |
-
num_bytes:
|
| 166 |
-
num_examples:
|
| 167 |
-
download_size:
|
| 168 |
-
dataset_size:
|
| 169 |
- config_name: vision
|
| 170 |
features:
|
| 171 |
- name: images
|
|
@@ -446,3 +446,15 @@ and image terms, evidence URLs, review status and unresolved reasons. See
|
|
| 446 |
[license-review.json](vision/license-review.json), [sources.yaml](vision/sources.yaml)
|
| 447 |
and [the reproducible update script](vision/update_vision_license_metadata.py).
|
| 448 |
Images, questions, choices, targets, IDs and source splits are unchanged.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
dtype: string
|
| 81 |
splits:
|
| 82 |
- name: train
|
| 83 |
+
num_bytes: 1414402041
|
| 84 |
+
num_examples: 1026061
|
| 85 |
- name: validation
|
| 86 |
+
num_bytes: 18404600
|
| 87 |
+
num_examples: 14977
|
| 88 |
- name: test
|
| 89 |
+
num_bytes: 18483839
|
| 90 |
+
num_examples: 15098
|
| 91 |
+
download_size: 537685678
|
| 92 |
+
dataset_size: 1451290480
|
| 93 |
- config_name: filtered-full
|
| 94 |
features:
|
| 95 |
- name: state
|
|
|
|
| 120 |
dtype: string
|
| 121 |
splits:
|
| 122 |
- name: train
|
| 123 |
+
num_bytes: 1633132319
|
| 124 |
+
num_examples: 1305072
|
| 125 |
+
download_size: 515633193
|
| 126 |
+
dataset_size: 1633132319
|
| 127 |
- config_name: full
|
| 128 |
features:
|
| 129 |
- name: state
|
|
|
|
| 156 |
dtype: string
|
| 157 |
splits:
|
| 158 |
- name: train
|
| 159 |
+
num_bytes: 3200442019
|
| 160 |
+
num_examples: 2523746
|
| 161 |
- name: validation
|
| 162 |
+
num_bytes: 18404600
|
| 163 |
+
num_examples: 14977
|
| 164 |
- name: test
|
| 165 |
+
num_bytes: 18483839
|
| 166 |
+
num_examples: 15098
|
| 167 |
+
download_size: 1214554681
|
| 168 |
+
dataset_size: 3237330458
|
| 169 |
- config_name: vision
|
| 170 |
features:
|
| 171 |
- name: images
|
|
|
|
| 446 |
[license-review.json](vision/license-review.json), [sources.yaml](vision/sources.yaml)
|
| 447 |
and [the reproducible update script](vision/update_vision_license_metadata.py).
|
| 448 |
Images, questions, choices, targets, IDs and source splits are unchanged.
|
| 449 |
+
|
| 450 |
+
### English task correction and benchmark exclusion (2026-10-09)
|
| 451 |
+
|
| 452 |
+
CLadder is evaluation-only and removed from `default`, `full` and `filtered-full`.
|
| 453 |
+
Missing-item decisions now separate the list and query and explicitly ask about
|
| 454 |
+
membership; the previous query was at the end of the state. WikiHow order now
|
| 455 |
+
asks which step comes first. QuaRel uses native answer texts as MC options with
|
| 456 |
+
permuted, correctly remapped golds, replacing fixed A/B classes. Its old
|
| 457 |
+
classification-only packs and obsolete generic instruction-paraphrase variants
|
| 458 |
+
were removed. Source examples and splits remain; unrelated tasks and vision
|
| 459 |
+
are unchanged. Current counts are in the config metadata. See
|
| 460 |
+
[rebuild audit](english-task-rebuild.json) and [reproducible script](english-task-rebuild.py).
|
data/test-00000-of-00001.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62c0a1abd422bc937d2bc67c2d46492d8bcc829965e96debbf91ec0da36119ec
|
| 3 |
+
size 5800227
|
data/train-00000-of-00005.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09ce20a0cef7a67b8f2357a0547bc1464ecea265e15adb4e14ee6bde32dc2d70
|
| 3 |
+
size 103701841
|
data/train-00001-of-00005.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aff8504d33003a0c47f75708158e1ce69731998d4112401ff58612c904b4cd22
|
| 3 |
+
size 103442731
|
data/train-00002-of-00005.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a63ed65e0ba8a1551d959a0167120a0c5ec29b13b10181506f89f1b1ee86ec44
|
| 3 |
+
size 104804208
|
data/train-00003-of-00005.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62148fd7138e1e1d8840ddf3776d99703410d4e6cf53c20ee335712fc6e28f83
|
| 3 |
+
size 104413919
|
data/train-00004-of-00005.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07ea7917a53d1bf5002db13f167ee4fda779d28b15f8c2d20f04c16353ca140e
|
| 3 |
+
size 103719910
|
data/validation-00000-of-00001.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1962ea51bb2b47a6ac876bea8f98e73e1356d33b7ac18ee987f369ab3c014a3e
|
| 3 |
+
size 5737942
|
english-task-rebuild.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
english-task-rebuild.py
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Rebuild affected English decisions from lossless published source inputs.
|
| 2 |
+
|
| 3 |
+
Retain native examples, gold meanings and splits. Rebuild the task-specific
|
| 4 |
+
question and options through the current declarations. Obsolete generic prompt
|
| 5 |
+
variants, QuaRel's classification-only packs and all CLadder rows are removed.
|
| 6 |
+
Other sources and the entire vision config are unchanged. --publish is explicit.
|
| 7 |
+
"""
|
| 8 |
+
import hashlib,json,re,sys
|
| 9 |
+
from collections import Counter,defaultdict
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
import numpy as np
|
| 12 |
+
import pyarrow as pa
|
| 13 |
+
import pyarrow.compute as pc
|
| 14 |
+
import pyarrow.parquet as pq
|
| 15 |
+
import yaml
|
| 16 |
+
from huggingface_hub import HfApi,CommitOperationAdd,DatasetCard
|
| 17 |
+
from tasksource import tasks
|
| 18 |
+
from tasksource.jev.options import choice_permutation
|
| 19 |
+
from tasksource.jev.augmentations import verification_question
|
| 20 |
+
from scripts.build_jev_dataset import example_key,source_family,row_format,validate_decisions
|
| 21 |
+
from datasets import Dataset,disable_progress_bars
|
| 22 |
+
|
| 23 |
+
ROOT=Path('build/english-task-repair');OUT=ROOT/'release';OUT.mkdir(exist_ok=True)
|
| 24 |
+
SNAP=Path((ROOT/'snapshot.txt').read_text())
|
| 25 |
+
REPO='tasksource/tasksource-jev-typed-decisions';PARENT='e4d7c06b6c3810ba17df2c3fd26c13e2baa64541'
|
| 26 |
+
MIP='missing-item-prediction/contrastive';ORDER='goal-step-wikihow/order';QUAREL='quarel'
|
| 27 |
+
QUESTIONS={MIP:tasks.mip.question,ORDER:tasks.gs_order.question,QUAREL:tasks.quarel.question}
|
| 28 |
+
AFFECTED=set(QUESTIONS)|{'cladder'}
|
| 29 |
+
disable_progress_bars()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def dump(path,x):path.write_text(json.dumps(x,indent=2,ensure_ascii=False)+'\n')
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def pair(prompt):
|
| 36 |
+
x=tasks._missing_item_pair({'prompt':prompt})
|
| 37 |
+
return f"text_A: {x['items']}\ntext_B: {x['queried_item']}"
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def rebuild(row):
|
| 41 |
+
row=dict(row);source=row['source'];variant=row['variant']
|
| 42 |
+
if source=='cladder':return None,'evaluation_only'
|
| 43 |
+
if variant=='instruction_paraphrase':return None,'obsolete_generic_prompt_variant'
|
| 44 |
+
if source==QUAREL and variant=='packed_derived':return None,'classification_pack_invalid_for_native_mc'
|
| 45 |
+
question=QUESTIONS[source]
|
| 46 |
+
if source==MIP:
|
| 47 |
+
if variant=='packed_derived':
|
| 48 |
+
row['state'],count=re.subn(r'(Item [A-Z]:\n)(.*?)(?=\n\nItem [A-Z]:\n|\Z)',
|
| 49 |
+
lambda m:m[1]+pair(m[2]),row['state'],flags=re.S)
|
| 50 |
+
assert count>=2
|
| 51 |
+
row['question']=f'Each item answers: "{question}"\n'+row['question']
|
| 52 |
+
else:row['state']=pair(row['state'])
|
| 53 |
+
if source==QUAREL:
|
| 54 |
+
stem,a,b=tasks._quarel_parts(row['state']);answers={'A':a,'B':b};row['state']=stem
|
| 55 |
+
if a==b:return None,'duplicate_native_options'
|
| 56 |
+
if row['kind']=='noul':
|
| 57 |
+
match=re.fullmatch(r'Is "([AB])" the correct label for this example\?',row['question'])
|
| 58 |
+
assert match,row['question']
|
| 59 |
+
row['question']=verification_question(question,answers[match[1]])
|
| 60 |
+
else:
|
| 61 |
+
assert set(row['options'])=={'A','B'}
|
| 62 |
+
old_gold={answers[o]:p for o,p in zip(row['options'],row['target'])}
|
| 63 |
+
options=[answers[o] for o in row['options']]
|
| 64 |
+
identifier=f"{source}:{row['split']}:{row['group_id'].rsplit(':',1)[1]}"
|
| 65 |
+
order=choice_permutation(options,identifier) or list(range(len(options)))
|
| 66 |
+
row['options']=[options[i] for i in order]
|
| 67 |
+
row['target']=[row['target'][i] for i in order]
|
| 68 |
+
assert dict(zip(row['options'],row['target']))==old_gold
|
| 69 |
+
row['question']=question
|
| 70 |
+
elif variant=='label_verification':row['question']=question+' '+row['question']
|
| 71 |
+
elif variant!='packed_derived':row['question']=question
|
| 72 |
+
return row,None
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
# All direct parents are in full, even when a smaller config caps some away.
|
| 76 |
+
cache_path=ROOT/'keys.json'
|
| 77 |
+
if cache_path.exists():
|
| 78 |
+
cache=json.loads(cache_path.read_text())
|
| 79 |
+
assert cache['parent']==PARENT and cache['questions']==QUESTIONS
|
| 80 |
+
keys=cache['keys'];native_gold=Counter(cache['native_gold'])
|
| 81 |
+
else:
|
| 82 |
+
keys={};fallback={};native_gold=Counter()
|
| 83 |
+
for file in sorted(SNAP.glob('full/*.parquet')):
|
| 84 |
+
table=pq.read_table(file)
|
| 85 |
+
selected=table.filter(pc.is_in(table['source'],value_set=pa.array(sorted(AFFECTED))))
|
| 86 |
+
for old in selected.to_pylist():
|
| 87 |
+
row,reason=rebuild(old)
|
| 88 |
+
if row is None:continue
|
| 89 |
+
key=example_key(row['source'],row['state'],row['options'],row['target'])
|
| 90 |
+
fallback.setdefault(row['group_id'],key)
|
| 91 |
+
if row['variant']=='direct':
|
| 92 |
+
keys[row['group_id']]=key
|
| 93 |
+
native_gold[row['source']]+=1
|
| 94 |
+
keys={**fallback,**keys}
|
| 95 |
+
dump(cache_path,{'parent':PARENT,'questions':QUESTIONS,'keys':keys,'native_gold':dict(native_gold)})
|
| 96 |
+
|
| 97 |
+
api=HfApi();info=api.dataset_info(REPO,revision=PARENT,files_metadata=True)
|
| 98 |
+
remote={f.rfilename:f for f in info.siblings}
|
| 99 |
+
stats=defaultdict(lambda:defaultdict(Counter));removed=Counter();updated=Counter();files=[]
|
| 100 |
+
card=DatasetCard.load(SNAP/'README.md')
|
| 101 |
+
formats={r.id:r.task_type for r in __import__('tasksource').list_tasks(instruct=True,soft=True).itertuples()}
|
| 102 |
+
for config,directory in [('default','data'),('full','full'),('filtered-full','filtered-full')]:
|
| 103 |
+
for path in sorted((SNAP/directory).glob('*.parquet')):
|
| 104 |
+
table=pq.read_table(path);selected=pc.is_in(table['source'],value_set=pa.array(sorted(AFFECTED)))
|
| 105 |
+
positions=pc.indices_nonzero(selected).to_pylist();changed=[];indices=[];drop=[]
|
| 106 |
+
for index,old in zip(positions,table.filter(selected).to_pylist()):
|
| 107 |
+
row,reason=rebuild(old)
|
| 108 |
+
if row is None:
|
| 109 |
+
drop.append(index);removed[(config,old['source'],reason)]+=1;continue
|
| 110 |
+
row['example_id']=keys[row['group_id']]
|
| 111 |
+
changed.append(row);indices.append(index);updated[(config,row['source'])]+=1
|
| 112 |
+
patched=table
|
| 113 |
+
fields=[f for f in ['state','question','options','target','example_id'] if f in table.column_names]
|
| 114 |
+
for field in fields:
|
| 115 |
+
values=pa.array([r[field] for r in changed],type=table.schema.field(field).type)
|
| 116 |
+
take=np.arange(len(table),dtype=np.int64);take[indices]=len(table)+np.arange(len(indices))
|
| 117 |
+
patched=patched.set_column(table.schema.get_field_index(field),table.schema.field(field),
|
| 118 |
+
pc.take(pa.chunked_array([*table[field].chunks,values]),pa.array(take)))
|
| 119 |
+
keep=np.ones(len(table),dtype=bool);keep[drop]=False;patched=patched.filter(pa.array(keep))
|
| 120 |
+
expected_unchanged=table.filter(pc.and_(pc.invert(selected),pa.array(keep)))
|
| 121 |
+
actual_unchanged=patched.filter(pc.invert(pc.is_in(patched['source'],value_set=pa.array(sorted(AFFECTED)))))
|
| 122 |
+
assert expected_unchanged.equals(actual_unchanged)
|
| 123 |
+
assert 'cladder' not in set(patched['source'].to_pylist())
|
| 124 |
+
affected=patched.filter(pc.is_in(patched['source'],value_set=pa.array(sorted(QUESTIONS))))
|
| 125 |
+
validate_decisions(Dataset(affected,fingerprint='rebuild-validation'),path.name)
|
| 126 |
+
split=path.name.split('-')[0]
|
| 127 |
+
bucket=stats[config][split]
|
| 128 |
+
for field,name in [('source','sources'),('kind','kinds'),('variant','variants'),('license_use','license_use')]:
|
| 129 |
+
bucket.setdefault(name,Counter()).update(patched[field].to_pylist())
|
| 130 |
+
bucket.setdefault('bytes',Counter())['num_bytes']+=patched.nbytes
|
| 131 |
+
if positions:
|
| 132 |
+
dest=OUT/directory/path.name;dest.parent.mkdir(exist_ok=True)
|
| 133 |
+
if not dest.exists() or not pq.read_table(dest).equals(patched):
|
| 134 |
+
pq.write_table(patched,dest,compression='snappy')
|
| 135 |
+
assert pq.read_table(dest).equals(patched)
|
| 136 |
+
name=f'{directory}/{path.name}'
|
| 137 |
+
files.append({'path':name,'local':str(dest),'sha256':hashlib.sha256(dest.read_bytes()).hexdigest(),
|
| 138 |
+
'size_change':dest.stat().st_size-remote[name].size})
|
| 139 |
+
print(config,path.name,'updated',len(indices),'removed',len(drop),flush=True)
|
| 140 |
+
config_info=next(c for c in card.data.dataset_info if c['config_name']==config)
|
| 141 |
+
for split in config_info['splits']:
|
| 142 |
+
bucket=stats[config][split['name']];split['num_examples']=sum(bucket['sources'].values());split['num_bytes']=bucket['bytes']['num_bytes']
|
| 143 |
+
config_info['dataset_size']=sum(s['num_bytes'] for s in config_info['splits'])
|
| 144 |
+
config_info['download_size']+=sum(f['size_change'] for f in files if f['path'].startswith(directory+'/'))
|
| 145 |
+
|
| 146 |
+
report={'parent_revision':PARENT,'updated':{'|'.join(k):v for k,v in updated.items()},
|
| 147 |
+
'removed':{'|'.join(k):v for k,v in removed.items()},'native_direct_decisions_checked':dict(native_gold),
|
| 148 |
+
'configs':{c:{s:{k:dict(v) for k,v in d.items()} for s,d in splits.items()} for c,splits in stats.items()},
|
| 149 |
+
'checks':['all unrelated rows exactly unchanged','native gold meanings preserved after QuaRel permutation',
|
| 150 |
+
'all retained typed decisions valid','CLadder absent from all training configs','vision untouched'],
|
| 151 |
+
'script_sha256':hashlib.sha256(Path(__file__).read_bytes()).hexdigest()}
|
| 152 |
+
release=json.loads((SNAP/'release-audit.json').read_text())
|
| 153 |
+
for split,bucket in stats['full'].items():
|
| 154 |
+
families=Counter();fmts=Counter()
|
| 155 |
+
for source,n in bucket['sources'].items():families[source_family(source)]+=n;fmts[row_format(source,formats)]+=n
|
| 156 |
+
release['splits'][split]={'rows':sum(bucket['sources'].values()),**{k:dict(v) for k,v in bucket.items() if k!='bytes'},'families':dict(families),'formats':dict(fmts)}
|
| 157 |
+
release['mix']={s:{'rows':sum(d['sources'].values()),'sources':len(d['sources'])} for s,d in stats['default'].items()}
|
| 158 |
+
release['english_task_rebuild']=report
|
| 159 |
+
dump(OUT/'release-audit.json',release);dump(OUT/'english-task-rebuild.json',report)
|
| 160 |
+
sources=yaml.safe_load((SNAP/'sources.yaml').read_text());sources['sources'].pop('cladder',None)
|
| 161 |
+
for source,record in sources['sources'].items():
|
| 162 |
+
record['rows']={s:d['sources'][source] for s,d in stats['full'].items() if d['sources'][source]}
|
| 163 |
+
(OUT/'sources.yaml').write_text(yaml.safe_dump(sources,sort_keys=False))
|
| 164 |
+
card.text+='''\n### English task correction and benchmark exclusion (2026-10-09)
|
| 165 |
+
|
| 166 |
+
CLadder is evaluation-only and removed from `default`, `full` and `filtered-full`.
|
| 167 |
+
Missing-item decisions now separate the list and query and explicitly ask about
|
| 168 |
+
membership; the previous query was at the end of the state. WikiHow order now
|
| 169 |
+
asks which step comes first. QuaRel uses native answer texts as MC options with
|
| 170 |
+
permuted, correctly remapped golds, replacing fixed A/B classes. Its old
|
| 171 |
+
classification-only packs and obsolete generic instruction-paraphrase variants
|
| 172 |
+
were removed. Source examples and splits remain; unrelated tasks and vision
|
| 173 |
+
are unchanged. Current counts are in the config metadata. See
|
| 174 |
+
[rebuild audit](english-task-rebuild.json) and [reproducible script](english-task-rebuild.py).
|
| 175 |
+
'''
|
| 176 |
+
card.save(OUT/'README.md');dump(OUT/'staged.json',{'files':files,'report':report})
|
| 177 |
+
if '--publish' in sys.argv:
|
| 178 |
+
ops=[CommitOperationAdd(path_in_repo=f['path'],path_or_fileobj=f['local']) for f in files]
|
| 179 |
+
for name in ('README.md','sources.yaml','release-audit.json','english-task-rebuild.json'):
|
| 180 |
+
ops.append(CommitOperationAdd(path_in_repo=name,path_or_fileobj=str(OUT/name)))
|
| 181 |
+
ops.append(CommitOperationAdd(path_in_repo='english-task-rebuild.py',path_or_fileobj=__file__))
|
| 182 |
+
c=api.create_commit(REPO,repo_type='dataset',parent_commit=PARENT,operations=ops,commit_message='Rebuild three English decisions and remove evaluation-only CLadder')
|
| 183 |
+
dump(OUT/'published.json',{'revision':c.oid,'url':c.commit_url});print(c.commit_url,flush=True)
|
filtered-full/train-00000-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2486add0c4e10d5b6af8d50681c12862fd1e6cc2623402e5aff44696f0c0baf3
|
| 3 |
+
size 39504229
|
filtered-full/train-00001-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3f9b4d83d8ed4e538529bc0aa08c61571a9467669e57111ad2649351fe94aae
|
| 3 |
+
size 39515890
|
filtered-full/train-00002-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb96f5a18f26f0d0e813923dfccbce0261279c246456963f143b191629e3511b
|
| 3 |
+
size 40300306
|
filtered-full/train-00003-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94f48b73de375b6609ac136331542c8e3077fe09304a4166af027faeeae0bfde
|
| 3 |
+
size 39285054
|
filtered-full/train-00004-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2aa0f8398bc0dae4932f6cd3a4a19569d59fe726e178aba8aa7e0413055a6423
|
| 3 |
+
size 39637820
|
filtered-full/train-00005-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fd18de56f11150c8a858d9b14b9d71eae99d3e0081a3b5e4c06821a4593005c
|
| 3 |
+
size 39429254
|
filtered-full/train-00006-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3acc7072060e93bd326449311c72374788ec8edb08a13870c60df93958e20ef
|
| 3 |
+
size 39369856
|
filtered-full/train-00007-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:203b2825df9ffdc384f3506dcdf5a9e122657b76cfd322ae979543e5971f76e7
|
| 3 |
+
size 39481907
|
filtered-full/train-00008-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6838bd1001269fc7f6d06fb4c1332439d2ab49a7175c14af118b5486f3d6d4b1
|
| 3 |
+
size 39849999
|
filtered-full/train-00009-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc707787a5dd642c183136a078d460816a558ecdbefb2399af1bc5725e99b1d9
|
| 3 |
+
size 39650802
|
filtered-full/train-00010-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da51e26793d7e32ef124f5a79b76de5ff3a0899fc325925978e2362db7097d65
|
| 3 |
+
size 39731352
|
filtered-full/train-00011-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99516b2099a3dbc355a1da5e216b604410e114411a3eb727b922a0d8a2fc4c9c
|
| 3 |
+
size 39593889
|
filtered-full/train-00012-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1527e5efae268c975bdd7ea1a2fffc745ca907f415dd9e55b2358959df26315
|
| 3 |
+
size 40282835
|
full/test-00000-of-00001.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62c0a1abd422bc937d2bc67c2d46492d8bcc829965e96debbf91ec0da36119ec
|
| 3 |
+
size 5800227
|
full/train-00000-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6b32255b08ef97173ca329ae283c15d8fff4feb006064200162c2c082ea91c5
|
| 3 |
+
size 92567139
|
full/train-00001-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39100c3ed750de6205ab802a63897138b3d3be0d7337b5d2723c286106852b9b
|
| 3 |
+
size 91841649
|
full/train-00002-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a8084d1c08bdf5fb9acd7832f35e800e67edb1217678b795a0f1da331bd701f
|
| 3 |
+
size 92124179
|
full/train-00003-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1073abfa7f5984d5610449ad04cdd8fa611da18afd4bd3cab84937615e80197c
|
| 3 |
+
size 92588076
|
full/train-00004-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42ee5273342156477cf3fdcef02ce47d26dbc8749bbdd31ca4b5645af31374cf
|
| 3 |
+
size 92209176
|
full/train-00005-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f619a1e00c20d9e10ac5b3116ede505515683edce05787c7c7068940ec275360
|
| 3 |
+
size 91479779
|
full/train-00006-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f22afbc5576c0db12e5aaabceb7a777cf1b1399ab7e9ec0f251b298ca31578ba
|
| 3 |
+
size 91998795
|
full/train-00007-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cfec2d1af7dcd3977a810072a95bce3b22a29086a7652cc8591041738c5afe8
|
| 3 |
+
size 91662667
|
full/train-00008-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6edd67978d56d27b78f18c1aec8803fa59a3d7e83a6c5c5d120a59ad63360cb2
|
| 3 |
+
size 92038322
|
full/train-00009-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3cf6fee3d34ff69e71ff704ad0e2187ad2f30ecdc087254ffcbb80a6b562b12
|
| 3 |
+
size 91996419
|
full/train-00010-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e52d50c4aeda5398f350b5344fe6ffec890a3279e47acbdabe5bc41f7303078d
|
| 3 |
+
size 92128326
|
full/train-00011-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6aa83cf989e4a6dbec71e6b30ddb6e3b89dde8ab3bb05bcf9d2fcbb5694c0da2
|
| 3 |
+
size 91215179
|
full/train-00012-of-00013.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1f04ee1f7cd3ad6edbd5b1abf5047ae8dce532c97ed0c0ebef0c3d773e841b6
|
| 3 |
+
size 93101906
|
full/validation-00000-of-00001.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1962ea51bb2b47a6ac876bea8f98e73e1356d33b7ac18ee987f369ab3c014a3e
|
| 3 |
+
size 5737942
|
release-audit.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sources.yaml
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|