class_docstr: An open source couplet dataset, see https://github.com/v-zich/couplet-clean-dataset for details.
class_docstr_tok: ["An","open","source","couplet","dataset",",","see","https",":","\/\/github.com\/v-zich\/couplet-clean-dataset","for","details","."]
docstr: Reads a tab separated value file.
docstr_tok: ["Reads","a","tab","separated","value","file","."]
code: def _read_file(self, input_file, phase=None):
      """Reads a tab separated value file."""
      with codecs.open(input_file, "r", encoding="UTF-8") as f:
          reader = csv.reader(f, delimiter="\t", quotechar=None)
          examples = []
          seq_id = 0
          for line in reader:
              example = InputExample(
                  guid=seq_id, label=line[1], text_a=line[0]
              )
              seq_id += 1
              examples.append(example)
  
          return examples
  
file_path: PaddleHub/paddlehub/compat/datasets/couplet.py
imports: import codecs
  import csv
  import os
  import paddlehub.env
  from paddlehub.compat.datasets.base_dataset import InputExample
  from paddlehub.compat.datasets.nlp_dataset import GenerationDataset
  from paddlehub.utils.download import download_data
label_desc: Use image node_id 2 for calling the Couplet obj's underlying member method code with example usage: obj._read_file(input_file, phase) and returns: examples