"tests/vscode:/vscode.git/clone" did not exist on "f5d0fbd46805155a4406d36e8fb9f9d0324030c4"
Commit 0feef0d6 authored by Anish Thite's avatar Anish Thite
Browse files

add coqa extraction

parent 38ed3ac8
from ...base import Dataset
import os
import json
class CoQA(Dataset):
def training_docs(self):
pass
def validation_docs(self):
pass
def test_docs(self):
pass
def fewshot_examples(self, k):
traindocs = list(self.training_docs())
random.seed(123)
random.shuffle(traindocs)
return traindocs[:k]
def fewshot_description(self):
pass
def doc_to_text(self, doc, include_target=True):
json.load(open(doc))
This diff is collapsed.
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