"build_tools/vscode:/vscode.git/clone" did not exist on "7ee1c46b7831cdd5a66a46f23e4f32ffda1d0b52"
Unverified Commit ec45d0aa authored by Stella Biderman's avatar Stella Biderman Committed by GitHub
Browse files

Merge pull request #108 from EleutherAI/leogao2-patch-2

Make *_docs not abstract
parents 66558b35 1bf97c9e
......@@ -82,22 +82,19 @@ class Dataset(abc.ABC):
"""Whether the task has a test set"""
pass
@abc.abstractmethod
def training_docs(self):
"""
:return: Iterable[obj]
A iterable of any object, that doc_to_text can handle
"""
pass
return []
@abc.abstractmethod
def validation_docs(self):
pass
return []
@abc.abstractmethod
def test_docs(self):
pass
return []
def fewshot_examples(self, k):
if self._traindocs is None:
......
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