|
from datasets import load_dataset |
|
|
|
dataset_name = "ConditionalQA" |
|
passages = load_dataset("kwang2049/dapr", f"{dataset_name}-corpus", split="test") |
|
for passage in passages: |
|
passage["_id"] |
|
passage["text"] |
|
passage["title"] |
|
passage["doc_id"] |
|
passage["paragraph_no"] |
|
passage["total_paragraphs"] |
|
passage["is_candidate"] |
|
|
|
|
|
from datasets import load_dataset |
|
|
|
dataset_name = "ConditionalQA" |
|
passages = load_dataset( |
|
"kwang2049/dapr", f"{dataset_name}-corpus", split="test", streaming=True |
|
) |
|
for passage in passages: |
|
passage["_id"] |
|
passage["text"] |
|
passage["title"] |
|
passage["doc_id"] |
|
passage["paragraph_no"] |
|
passage["total_paragraphs"] |
|
passage["is_candidate"] |
|
|
|
from datasets import load_dataset |
|
|
|
dataset_name = "ConditionalQA" |
|
docs = load_dataset("kwang2049/dapr", f"{dataset_name}-docs", split="test") |
|
for doc in docs: |
|
doc["doc_id"] |
|
doc["title"] |
|
doc["passage_ids"] |
|
doc["passages"] |
|
|
|
from datasets import load_dataset |
|
|
|
dataset_name = "ConditionalQA" |
|
qrels = load_dataset("kwang2049/dapr", f"{dataset_name}-qrels", split="test") |
|
for qrel in qrels: |
|
qrel["query_id"] |
|
qrel["corpus_id"] |
|
qrel["score"] |
|
|
|
|
|
from datasets import load_dataset |
|
|
|
qrels = load_dataset("kwang2049/dapr", "nq-hard", split="test") |
|
for qrel in qrels: |
|
qrel["query_id"] |
|
qrel["corpus_id"] |
|
qrel["score"] |
|
|
|
|
|
qrel["query"] |
|
qrel["text"] |
|
qrel["title"] |
|
qrel["doc_id"] |
|
qrel["categories"] |
|
qrel["url"] |
|
|