text: from torch.utils.data import Dataset
  import json
  
  # !打开文本，一次性载入所有数据
  def load_file(filename):
  
      """Load dataset json file
  
      Returns:
          List: A list of the whole json file
      """
  
      D = []
      with open(filename, 'r', encoding='utf-8') as fp:
          for line in fp.readlines():
              line = json.loads(line)
              label = 0 if line['label'] == 'Negative' else 1
              D.append((line['sentence'],label))
      return D
  
  
  # !针对FewCLUE数据集的EPRSTMT子数据集的操作
  class FewCLUE_EPRSTMT_Dataset(Dataset):
  
      """Data Process For EPRSTMT
  
      Args:
          Dataset (class): A class of PyTorch
      """
  
      def __init__(self, dataset_type, data, args):
          super().__init__()
          self.args = args
          self.data = list()
          self.dataset_type = dataset_type
  
          for d in data:
              self.data.append(d)
  
      def __len__(self):
          return len(self.data)
  
      def __getitem__(self, idx):
          return self.data[idx]['sentence'], self.data[idx]['label']
  