class_docstr: Preparer for sequence labeling.
class_docstr_tok: ["Preparer","for","sequence","labeling","."]
docstr: Preparing raw data.
  For all kinds of text input, all_texts: [sentence1, ...]
  For single output, all_labels: [label1, label2, ...]
  For multiple outputs, all_labels: [[label1_1, ...], [label1_2, ...]]
docstr_tok: ["Preparing","raw","data",".","For","all","kinds","of","text","input",",","all_texts",":","[","sentence1",",","...","]","For","single","output",",","all_labels",":","[","label1",",","label2",",","...","]","For","multiple","outputs",",","all_labels",":","[","[","label1_1",",","...","]",",","[","label1_2",",","...","]","]"]
code: def prepare_raw_data(self, pre_process_pipeline):
      """
      Preparing raw data.
      For all kinds of text input, all_texts: [sentence1, ...]
      For single output, all_labels: [label1, label2, ...]
      For multiple outputs, all_labels: [[label1_1, ...], [label1_2, ...]]
      """
      if self.output_num <= 1:
          all_labels = []
      else:
          all_labels = [[] for _ in range(self.output_num)]
      all_texts = []
      for mode in self.all_modes:
          paths = self.config["data"][mode]["paths"]
          paths = [paths["source"], paths["target"]]
          paths_after_pre_process = [
              [one_path + ".after" for one_path in path]
              for path in paths
          ]
          logging.debug(
              "paths_after_pre_process: {}".format(
                  paths_after_pre_process
              )
          )
  
          infer_without_label = bool(
              mode == utils.INFER and self.infer_no_label
          )
  
          for (
              one_path_text,
              one_path_target,
              one_path_text_after,
              one_path_target_after,
          ) in zip(*paths, *paths_after_pre_process):
              data_size = get_file_len([one_path_text])
              self.prepare_one_raw_data(
                  (one_path_text, one_path_target),
                  (one_path_text_after, one_path_target_after),
                  mode,
                  infer_without_label,
                  pre_process_pipeline,
                  all_texts,
                  all_labels,
                  data_size,
              )
      return all_texts, all_labels
  
file_path: delta/delta/data/preprocess/text_seq2seq_preparer.py
imports: import os
  from delta import utils
  from absl import logging
  from delta.data.preprocess.base_preparer import TextPreparer
  from delta.data import utils
  from delta.utils.register import registers
  from delta.data.preprocess.utils import prepare_vocab
  from delta.data.preprocess.utils import prepare_vocab_from_config
  from delta.data.preprocess.text_ops import load_textline_dataset
  from delta.data.utils.common_utils import get_file_len
label_desc: Use image node_id 2 for calling the TextS2SPreparer obj's underlying member method code with example usage: obj.prepare_raw_data(pre_process_pipeline) and returns: all_texts,  all_labels