Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
code: string
name: string
autonym: string
glottolog_name: string
family: string
script: string
script_names: list<item: string>
  child 0, item: string
direction: string
role: string
style: list<item: string>
  child 0, item: string
varieties: list<item: string>
  child 0, item: string
orthography: list<item: string>
  child 0, item: string
evidence_languages: list<item: string>
  child 0, item: string
target_languages: list<item: string>
  child 0, item: string
to
{'code': Value('string'), 'name': Value('string'), 'autonym': Value('string'), 'glottolog_name': Value('string'), 'family': Value('string'), 'script': Value('string'), 'script_names': List(Value('string')), 'direction': Value('string'), 'role': Value('string'), 'orthography': List(Value('string')), 'varieties': List(Value('string')), 'target_languages': List(Value('string')), 'evidence_languages': List(Value('string'))}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 151, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 131, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 574, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              code: string
              name: string
              autonym: string
              glottolog_name: string
              family: string
              script: string
              script_names: list<item: string>
                child 0, item: string
              direction: string
              role: string
              style: list<item: string>
                child 0, item: string
              varieties: list<item: string>
                child 0, item: string
              orthography: list<item: string>
                child 0, item: string
              evidence_languages: list<item: string>
                child 0, item: string
              target_languages: list<item: string>
                child 0, item: string
              to
              {'code': Value('string'), 'name': Value('string'), 'autonym': Value('string'), 'glottolog_name': Value('string'), 'family': Value('string'), 'script': Value('string'), 'script_names': List(Value('string')), 'direction': Value('string'), 'role': Value('string'), 'orthography': List(Value('string')), 'varieties': List(Value('string')), 'target_languages': List(Value('string')), 'evidence_languages': List(Value('string'))}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Grounded alignment pipeline

The code that produces sigiranic/grounded-alignment-wiki: the generator script, its grounded prompt, its per-language knowledge files, and the experiment code that builds the comparison arms and trains and scores them.

A low-resource Wikipedia page is translated into high-resource languages while being grounded on the genuine parallel articles reached through Wikidata interlanguage links. The parallel pages are evidence about wording, never a source of content: if the richer article knows something the source does not, that knowledge stays out.

Strategy

  • grounded — Translate the low-resource page in one pass with every parallel article supplied as wording evidence, never as content.

Languages

als, avk, az, azb, bar, bat_smg, bug, dag, de, eml, en, eo, fa, fr, frr, glk, ia, id, ie, it, ka, lld, lt, mzn, nap, nv, pa, pms, sco, skr, sw, vo, wuu, xmf, zh

Generating the corpus

python grounded_alignment.py pages    --languages glk bar --pages 10
python grounded_alignment.py generate --languages glk bar
python grounded_alignment.py score

The model endpoint and credentials come from the environment (--provider, --base-url, --api-key-env); no key is stored in this repository.

Experiment code

The generated corpus is only useful against something, so the same repository carries the code that builds those comparisons and measures them.

file what it does
scripts/data_value_experiment.py Builds every arm from the corpora and trains and scores each run.
scripts/build_baseline_corpus.py Downloads the existing OPUS and Tatoeba data that the mined corpus is compared against.
scripts/hcc_arms.sh The dispatcher: numbered blocks of arms, each run claimed with a lock so several streams share one list.
scripts/hcc_run_experiment.sh Driver for a single run.
scripts/hcc_watch.sh Progress view over the run tree.
scripts/best_recipe.py Ranks training recipes from the scored runs.
scripts/gemma_speed_probe.py Measures what makes a Gemma LoRA training step fast on one card.
scripts/export_results.py Writes results/ below from the run tree.

Results

results/ holds every scored run, exported by scripts/export_results.py from the tree that produced it. results/runs.jsonl is the canonical file — one object per run, joinable on run_id — with results/by_language/ and results/by_experiment/ as views of it, and results/arms.json recording what each training set is and what it was matched against. results/README.md documents every file and field. Read it before comparing two arms.

Two things worth knowing before reading the numbers these produce. Arms named ours_matched_* are cut to the comparison corpus's pair count, and a pair is not the same amount of text in every corpus — FineTranslations records are machine-translated FineWeb2 documents averaging 179 English words against 13 for a mined sentence, so a pair-count match hands it roughly thirteen times the text. Arms named *_wordmatched_* and finetrans_nonwiki_matched_wiki are matched on pivot-side word count instead. Which control applies is recorded per arm in ARMS[name], under match_size_of or match_words_of.

Downloads last month
197