(empty)Fix get_patterns_in_dataset_repository error

#2
by lhoestq HF staff - opened

There was a breaking change in the get_patterns_in_dataset_repository function causing

TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'

You can fix that by simply not using it and providing the filenames explicitly.

The same fix was used in codeparrot/github-code:
https://huggingface.co/datasets/codeparrot/github-code/discussions/3

lhoestq changed pull request status to closed
lhoestq changed pull request title from Fix get_patterns_in_dataset_repository error to (empty)Fix get_patterns_in_dataset_repository error

Sign up or log in to comment