class_docstr: snli data class test for match task.
class_docstr_tok: ["snli","data","class","test","for","match","task","."]
code: def to_standard_format(input_file, output_file):
      label_dic = {
          "neutral": "2",
          "contradiction": "0",
          "entailment": "1",
      }
      with open(input_file, encoding="utf-8") as json_file, open(
          output_file, "w", encoding="utf-8"
      ) as out_file:
          text_reader = json_file.readlines()
          for line in text_reader:
              line_dic = json.loads(line)
              if (
                  "gold_label" not in line_dic
                  or "sentence1" not in line_dic
                  or "sentence2" not in line_dic
              ):
                  continue
              if line_dic["gold_label"] == "-":
                  continue
              label = label_dic[line_dic["gold_label"]]
              sentence1 = line_dic["sentence1"]
              sentence2 = line_dic["sentence2"]
              out_file.write(
                  label + "\t" + sentence1 + "\t" + sentence2 + "\n"
              )
  
file_path: delta/delta/data/datasets/snli.py
imports: import wget
  import os
  import traceback
  import json
  from absl import logging
  from delta.data.datasets.base_dataset import BaseDataSet
  from delta.utils.register import registers
label_desc: Use image node_id 3 for calling the SNLI obj's underlying member method code with example usage: obj.to_standard_format(input_file, output_file) without return types