I have downloaded dataset in local directly from github:
brew install git-lfs
git lfs instal
git clone https://huggingface.co/datasets/explodinggradients/amnesty_qa
It has following directory structure:
I want to load english.json
using hugging face load_dataset.
The json format is like this:
{
"question": [..,..,],
"answer": [..,...,],
"contexts": [
[..], [].. ],
}
from datasets import load_dataset
dataset = load_dataset(
"explodinggradients/amnesty_qa",
"english_v3",
trust_remote_code=True
)