def METHOD_NAME(self):
    if len(self.context_X) == 0 or len(self.question_X) == 0 or len(self.Y) == 0:
        train_size = 0
        test_size = 0
        for train_dataset in self.train_file_name:
            label = train_dataset.split(".")[0]
            train_size += self.process_data_file(
                os.path.join(self.data_path, train_dataset), label, True
            )
        for test_dataset in self.test_file_name:
            label = test_dataset.split("-")[0]
            test_size += self.process_data_file(
                os.path.join(self.data_path, test_dataset), label, False
            )
        self.attributes["train_index_list"] = [i for i in range(train_size)]
        self.attributes["test_index_list"] = [
            i for i in range(train_size, train_size + test_size)
        ]
        self.attributes["index_list"] = (
            self.attributes["train_index_list"] + self.attributes["test_index_list"]
        )
        assert len(self.attributes["index_list"]) == len(
            self.attributes["label_index_list"]
        )
        print(len(self.attributes["train_index_list"]))
        print(len(self.attributes["test_index_list"]))