def _create_examples(self, lines, split):
     examples = []
     for _ in range(task_weighting.get_task_multiple(self, split)):
         examples += self._load_glue(lines, split,
                                     1 if split == "test" else 3,
                                     2 if split == "test" else 4, 5, True)
     return examples
 def _create_examples(self, lines, split):
     examples = []
     for _ in range(task_weighting.get_task_multiple(self, split)):
         if split == "diagnostic":
             examples += self._load_glue(lines, split, 1, 2, None, True)
         else:
             examples += self._load_glue(lines, split, 8, 9, -1, True)
     return examples
 def _create_examples(self, lines, split):
     examples = []
     for _ in range(task_weighting.get_task_multiple(self, split)):
         if "test" in split:
             examples += self._load_glue(lines, split, 1, None, None, True)
         else:
             examples += self._load_glue(lines, split, 0, None, 1, True)
     return examples
Ejemplo n.º 4
0
 def _create_examples(self, lines, split):
   examples = []
   offset = 0
   for _ in range(task_weighting.get_task_multiple(self, split)):
     examples += self._load_glue(lines, split, 3, 4, 0, True)
     if not offset:
       offset = len(examples)
     if self.config.double_unordered and split == "train":
       examples += self._load_glue(lines, split, 3, 4, 0, True, offset, True)
   return examples
 def _create_examples(self, lines, split):
     examples = []
     for _ in range(task_weighting.get_task_multiple(self, split)):
         examples += self._load_glue(lines, split, 0, None, 1, False)
     return examples