Commit 988a400f authored by Leo Gao's avatar Leo Gao
Browse files

Add abstract constructor

parent b0585de4
......@@ -54,6 +54,9 @@ class LM(abc.ABC):
class Dataset(abc.ABC):
@abc.abstractmethod
def __init__(self):
self.download()
def download(self):
"""Downloads the task dataset if necessary"""
......
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