tree-of-thought-llm/tasks/__init__.py

12 lines
382 B
Python
Raw Normal View History

2023-05-23 22:34:41 +00:00
def get_task(name, file=None):
if name == 'game24':
from .game24 import Game24Task
return Game24Task(file)
elif name == 'text':
from .text import TextTask
return TextTask(file)
elif name == 'crosswords':
from .crosswords import MiniCrosswordsTask
return MiniCrosswordsTask(file)
else:
raise NotImplementedError