Refactor tasks so that tasks have more control over model input and output
Compare changes
Files
11- Max Kimmich authored
+ 34
− 31
@@ -55,10 +55,9 @@ class QuestionAnswering(Task):
@@ -69,12 +68,14 @@ class QuestionAnswering(Task):
@@ -87,39 +88,41 @@ class QuestionAnswering(Task):
@@ -179,10 +182,10 @@ class SQuAD(QuestionAnswering):