class_docstr: atis2 data class for nlu joint task.
docstr: change data format for data input
code: def to_standard_format(input_file, output_file):
      """change data format for data input"""
      logging.info("Save file to {}".format(output_file))
  
      with open(input_file, encoding="utf-8") as in_file, open(
          output_file, "w", encoding="utf-8"
      ) as out_file:
          for row in in_file:
              parts = row.strip().split("\t")
              if len(parts) < 2:
                  continue
              text = parts[0]
              sub_parts = parts[1].split(" ")
              intent_label = sub_parts[-1]
              slots_label = " ".join(sub_parts[:-1])
  
              text = text.rstrip("EOS")
              text = text.strip()
  
              out_file.write(
                  intent_label + "\t" + slots_label + "\t" + text + "\n"
              )
  
file_path: delta/delta/data/datasets/atis2.py
imports: import os
  from absl import logging
  import shutil
  import traceback
  from delta.data.datasets.base_dataset import BaseDataSet
  from delta.utils.register import registers
label_desc: Use image node_id 2 for calling the ATIS2 obj's underlying member method code with example usage: obj.to_standard_format(input_file, output_file) without return types