Dataset Viewer issue

#1
by ljvmiranda921 - opened

The dataset viewer is not working. When I'm checking my filepaths, they seem to be correct. I wonder what am I missing here?

Error details:

Error code:   StreamingRowsError
Exception:    FileNotFoundError
Message:      [Errno 2] No such file or directory: 'corpus/iob/train.iob'
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 286, in get_rows_or_raise
                  return get_rows(
                File "/src/services/worker/src/worker/utils.py", line 227, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 264, 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 1353, in __iter__
                  for key, example in ex_iterable:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 207, in __iter__
                  yield from self.generate_examples_fn(**self.kwargs)
                File "/tmp/modules-cache/datasets_modules/datasets/ljvmiranda921--tlunified-ner/9f1fba27e89834d4b50e5e1d68148ff29313fd8f08f22879a5f982c167ae7437/tlunified-ner.py", line 63, in _generate_examples
                  with open(filepath, encoding="utf-8") as f:
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/streaming.py", line 71, in wrapper
                  return function(*args, use_auth_token=use_auth_token, **kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/download/streaming_download_manager.py", line 493, in xopen
                  return open(main_hop, mode, *args, **kwargs)
              FileNotFoundError: [Errno 2] No such file or directory: 'corpus/iob/train.iob'

cc @albertvillanova @lhoestq @severo .

Solved! I realized that I should still call dl_manager.download_and_extract to the actual filepaths.

ljvmiranda921 changed discussion status to closed

Sign up or log in to comment