def __init__(self, file_list, is_shuffle=False):
        """ Initiation function for dataset for extractive summarization preprocessed data.

        Args:
            file_list (list of strings): List of files that the dataset is loaded from.
            is_shuffle (bool, optional): A boolean value specifies whether the list of
                files is shuffled when the dataset is loaded. Defaults to False.
        """

        self.file_list = sorted(file_list)
        if is_shuffle:
            random.shuffle(self.file_list)
        self.data = []
        for f in self.file_list:
            self.data.extend(torch.load(f))
 Initiation function for dataset for extractive summarization preprocessed data.

        Args:
            file_list (list of strings): List of files that the dataset is loaded from.
            is_shuffle (bool, optional): A boolean value specifies whether the list of
                files is shuffled when the dataset is loaded. Defaults to False.
        
utils_nlp/models/transformers/bertsum/dataset.py