Datasets:
Dataset Viewer issue: mismatch between repo and script names
#1
by
albertvillanova
HF staff
- opened
The dataset viewer is not working.
Please note that the error message may seem misleading... Indeed, both the repo and the Python script name should be equal. You should:
- Either rename your repo from
UTCD
toutcd
. You can do that in the Settings tab: https://huggingface.co/datasets/claritylab/UTCD/settings - Or rename your Python loading script from
utcd.py
toUTCD.py
Also note that users who want to load your dataset will have to use your repo name, therefore:
- either
load_dataset("claritylab/utcd")
if you rename your repo - or
load_dataset("claritylab/UTCD")
if you rename your script instead
Once you perform the renaming, you can test locally your dataset for debugging purposes with:
load_dataset("path/to/your/local/python/loading/script.py")
Error details:
Error code: StreamingRowsError
Exception: KeyError
Message: 'Fed #39;s Bies Says US Growth Solid, #39; Oil Not Fanning Inflation The Federal Reserve can raise interest raise at a measured pace because US economic growth is solid #39; #39; and rising energy costs haven #39;t yet sparked concern about a broader acceleration of inflation, Fed Governor Susan Bies said.'
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 358, in get_rows_or_raise
return get_rows(
File "/src/services/worker/src/worker/utils.py", line 302, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 338, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 985, in __iter__
yield _apply_feature_types_on_example(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 736, in _apply_feature_types_on_example
encoded_example = features.encode_example(example)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1824, in encode_example
return encode_nested_example(self, example)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1223, in encode_nested_example
{
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/features/features.py", line 1223, in <dictcomp>
{
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 302, in zip_dict
yield key, tuple(d[key] for d in dicts)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/utils/py_utils.py", line 302, in <genexpr>
yield key, tuple(d[key] for d in dicts)
KeyError: 'Fed #39;s Bies Says US Growth Solid, #39; Oil Not Fanning Inflation The Federal Reserve can raise interest raise at a measured pace because US economic growth is solid #39; #39; and rising energy costs haven #39;t yet sparked concern about a broader acceleration of inflation, Fed Governor Susan Bies said.'