deep-thinking / tasks /__init__.py
jx-yang's picture
<ADD> +app
9d21d47
raw
history blame
241 Bytes
from .sst2 import SST2ProbInferenceForMC
task_mapper = {"sst2": SST2ProbInferenceForMC}
def load_task(name):
if name not in task_mapper.keys():
raise ValueError(f"Unrecognized dataset `{name}`")
return task_mapper[name]