Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise error for DocumentDataset if input path is empty #582

Open
praateekmahajan opened this issue Mar 10, 2025 · 0 comments
Open

Raise error for DocumentDataset if input path is empty #582

praateekmahajan opened this issue Mar 10, 2025 · 0 comments

Comments

@praateekmahajan
Copy link
Collaborator

praateekmahajan commented Mar 10, 2025

Currently the error is raised at the dask layer which is not helpful the user

\\\\\\"/opt/NeMo-Text-Curator/nemo_curator/datasets/doc_dataset.py\\\\\\", line 220, in read_custom\\\\n    read_data(\\\\n  File \\\\\\"/opt/NeMo-Text-Curator/nemo_curator/utils/distributed_utils.py\\\\\\", line 604, in
read_data\\\\n    return read_data_files_per_partition(\\\\n  File \\\\\\"/opt/NeMo-Text-Curator/nemo_curator/utils/distributed_utils.py\\\\\\", line 514, in read_data_files_per_partition\\\\n    output = dd.from_map(\\\\n  File
\\\\\\"/nemo_curator/conda_envs/envs/text_curator/lib/python3.10/site-packages/dask_expr/_collection.py\\\\\\", line 5989, in from_map\\\\n    raise ValueError(\\\\\\"All `iterables` must have a non-zero
length\\\\\\")\\\\nValueError: All `iterables` must have a non-zero length\\\\n\\"}"}']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant