Unverified Commit 15f4a3ef authored by Hailey Schoelkopf's avatar Hailey Schoelkopf Committed by GitHub
Browse files

Merge pull request #890 from tmabraham/big-refactor

[Refactor] Fix PubMedQA
parents efa38caa 3a7f52d0
def doc_to_text(doc) -> str:
ctxs = "\n".join(doc["context"]["contexts"])
ctxs = "\n".join(doc["CONTEXTS"])
return "Abstract: {}\nQuestion: {}\nAnswer:".format(
ctxs, doc["question"], doc["final_decision"]
ctxs, doc["QUESTION"], doc["final_decision"]
)
......
task: pubmed_qa
dataset_path: pubmed_qa
dataset_name: pqa_labeled
task: pubmedqa
dataset_path: bigbio/pubmed_qa
dataset_name: pubmed_qa_labeled_fold0_source
output_type: multiple_choice
training_split: null
validation_split: null
test_split: train
training_split: train
validation_split: validation
test_split: test
doc_to_text: !function preprocess_pubmedqa.doc_to_text
doc_to_target: final_decision
doc_to_choice: ["yes", "no", "maybe"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment