This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This snippet requires you to install Hugging Face's datasets module | |
from datasets import load_dataset | |
import pandas as pd | |
Dataframe = pd.DataFrame({}) | |
questions = load_dataset('squad')['train']['question'][:3000] | |
Dataframe = Dataframe.append(pd.DataFrame({'Text' : questions, 'Source' : 'squad'})) | |
questions = load_dataset('hotpot_qa', 'distractor')['train']['question'][:3000] |
NewerOlder