The dataset viewer is not available for this split.
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
target_languages: list<item: string>
child 0, item: string
evidence_languages: list<item: string>
child 0, item: string
orthography: 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 149, 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 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, 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 544, 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 3052, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2559, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2584, 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 558, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 440, 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 361, 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 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, 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
target_languages: list<item: string>
child 0, item: string
evidence_languages: list<item: string>
child 0, item: string
orthography: 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 matchNeed 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: one script, its
grounded prompt and its per-language knowledge files.
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
Running it
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.
- Downloads last month
- 140