Beispiel #1
0
 def get_val_examples(self):
     return self._create_examples(
         lines=zip(
             read_json_lines(self.val_path),
             read_file_lines(self.path_dict["val_labels"],
                             strip_lines=True),
         ),
         set_type="val",
     )
Beispiel #2
0
 def get_test_examples(self):
     return self._create_examples(lines=read_json_lines(self.test_path),
                                  set_type="test")
Beispiel #3
0
 def get_val_examples(self):
     return self._create_examples(lines=read_json_lines(self.val_path),
                                  set_type="val")
Beispiel #4
0
 def get_train_examples(self):
     return self._create_examples(lines=read_json_lines(self.train_path),
                                  set_type="train")
Beispiel #5
0
 def get_val_examples(self):
     return self._create_examples(
         lines=read_json_lines(self.path_dict["val_inputs"]),
         labels=self._read_labels(self.path_dict["val_labels"]),
         set_type="val",
     )
Beispiel #6
0
 def get_train_examples(self):
     return self._create_examples(
         lines=read_json_lines(self.train_path),
         labels=self._read_labels(self.path_dict["train_labels"]),
         set_type="train",
     )