class_docstr: NSP Reader.
code: def __init__(self, args):
      super(NSPReader, self).__init__(args)
      self.fields.append("label")
      self.Record = namedtuple(
          "Record", self.fields, defaults=(None,) * len(self.fields)
      )
  
      self.attention_style = args.attention_style
      self.mix_negative_sample = args.mix_negative_sample
      return
  
file_path: PaddleHub/modules/text/text_generation/plato2_en_large/readers/nsp_reader.py
imports: from collections import namedtuple
  import numpy
  from .dialog_reader import DialogReader
  from ..utils import pad_batch_data
  from ..utils.args import str2bool
  from ..utils.masking import mask
label_desc: Use image node_id 2 to create a new NSPReader object from inherited base classes: DialogReader with example: obj = NSPReader(args)