class_docstr: Preparer for sequence labeling.
class_docstr_tok: ["Preparer","for","sequence","labeling","."]
docstr: Load a raw file. Return text and label.
  For single text input, text: [sentence1, ...]
  For multiple text inputs, text: [[sentence1_1, ...], [sentence1_2, ...]]
  For single output, label: [label1, label2, ...]
  For multiple outputs, label: [[label1_1, ...], [label1_2, ...]]
docstr_tok: ["Load","a","raw","file",".","Return","text","and","label",".","For","single","text","input",",","text",":","[","sentence1",",","...","]","For","multiple","text","inputs",",","text",":","[","[","sentence1_1",",","...","]",",","[","sentence1_2",",","...","]","]","For","single","output",",","label",":","[","label1",",","label2",",","...","]","For","multiple","outputs",",","label",":","[","[","label1_1",",","...","]",",","[","label1_2",",","...","]","]"]
code: def load_a_raw_file(self, one_path, infer_without_label):
      """
      Load a raw file. Return text and label.
      For single text input, text: [sentence1, ...]
      For multiple text inputs, text: [[sentence1_1, ...], [sentence1_2, ...]]
      For single output, label: [label1, label2, ...]
      For multiple outputs, label: [[label1_1, ...], [label1_2, ...]]
      """
      column_num = 1
      text_path, target_path = one_path
      texts = load_textline_dataset([text_path], column_num)
      # texts = data_utils.load_seq2seq_raw_data([text_path])
      if not infer_without_label:
          target = load_textline_dataset([target_path], column_num)
          return texts + target, target
      return texts, []
  
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 3 for calling the TextS2SPreparer obj's underlying member method code with example usage: obj.load_a_raw_file(one_path, infer_without_label) and returns: texts,  list, unknown,  target