Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

[Feature Request] Allowing unix-style pattern matching in download_data.py #227

Open
xhluca opened this issue Aug 1, 2022 · 0 comments
Open

Comments

@xhluca
Copy link

xhluca commented Aug 1, 2022

Right now, you need to enter the exact name of each file required, which is quite time consuming. It would be nice to allow more flexibility in using python data/download_data.py. For example, the --resource flag could accept unix-style pattern matching, e.g.

# Download all file starting with data.retriever
python data/download_data.py --resource "data.retriever.*" 

# Download dev splits of retriever
python data/download_data.py --resource "data.retriever.*-dev" 

# Download all data
python data/download_data.py --resource "data.*" 

This can be easily done with fnmatch. I have personally implemented that and I'm happy to open a PR if it's welcomed

@xhluca xhluca changed the title Allowing unix-style pattern matching in download_data.py [Feature Request] Allowing unix-style pattern matching in download_data.py Aug 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant