"vscode:/vscode.git/clone" did not exist on "32a4141d5aaca699c9377dd0d5c689ac019f91b9"
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: def doc_to_text(doc) -> str:
ctxs = "\n".join(doc["context"]["contexts"]) ctxs = "\n".join(doc["CONTEXTS"])
return "Abstract: {}\nQuestion: {}\nAnswer:".format( return "Abstract: {}\nQuestion: {}\nAnswer:".format(
ctxs, doc["question"], doc["final_decision"] ctxs, doc["QUESTION"], doc["final_decision"]
) )
......
task: pubmed_qa task: pubmedqa
dataset_path: pubmed_qa dataset_path: bigbio/pubmed_qa
dataset_name: pqa_labeled dataset_name: pubmed_qa_labeled_fold0_source
output_type: multiple_choice output_type: multiple_choice
training_split: null training_split: train
validation_split: null validation_split: validation
test_split: train test_split: test
doc_to_text: !function preprocess_pubmedqa.doc_to_text doc_to_text: !function preprocess_pubmedqa.doc_to_text
doc_to_target: final_decision doc_to_target: final_decision
doc_to_choice: ["yes", "no", "maybe"] 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