Commit 32294ff1 authored by lintangsutawika's avatar lintangsutawika
Browse files

fix for choices

parent cc6662e1
......@@ -652,9 +652,16 @@ class ConfigurableTask(Task):
if type(test_text) is int:
self.multiple_input = num_choice
else:
test_choice = None
if type(test_target) is list:
self.multiple_target = len(test_target)
else:
if (type(test_target) is int) and (test_choice is not None):
test_target = test_choice[test_target]
else:
test_target = str(test_target)
def download(self, dataset_kwargs=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