Use yaml instead of get data patterns when possible
This would make the data files resolution faster: no need to list all the data files to infer the dataset builder to use.

fix https://github.com/huggingface/datasets/issues/6140