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","."]
code: def __init__(self, tokenizer=None, max_seq_len=None):
      dataset_dir = os.path.join(hubenv.DATA_HOME, "couplet")
      with open(
          os.path.join(dataset_dir, "vocab.txt"), encoding="utf8"
      ) as vocab_file:
          label_list = [line.strip() for line in vocab_file.readlines()]
      super(Couplet, self).__init__(
          base_path=dataset_dir,
          train_file="train.tsv",
          dev_file="dev.tsv",
          test_file="test.tsv",
          label_list=label_list,
          tokenizer=tokenizer,
          max_seq_len=max_seq_len,
      )
  
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 1 to create a new Couplet object from inherited base classes: GenerationDataset with example: obj = Couplet(tokenizer, max_seq_len)