class_docstr: MSR Paraphrase Identification problems.
class_docstr_tok: ["MSR","Paraphrase","Identification","problems","."]
code: def example_generator(self, filename, dev_ids, dataset_split):
      for idx, line in enumerate(tf.gfile.Open(filename, "rb")):
          if idx == 0:
              continue  # skip header
          line = text_encoder.to_unicode_utf8(line.strip())
          l, id1, id2, s1, s2 = line.split("\t")
          is_dev = [id1, id2] in dev_ids
          if dataset_split == problem.DatasetSplit.TRAIN and is_dev:
              continue
          if dataset_split == problem.DatasetSplit.EVAL and not is_dev:
              continue
          inputs = [[s1, s2], [s2, s1]]
          for inp in inputs:
              yield {"inputs": inp, "label": int(l)}
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from tensor2tensor.data_generators import generator_utils
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.data_generators import text_problems
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 7 for calling the MSRParaphraseCorpus obj's underlying member method code with example usage: obj.example_generator(filename, dev_ids, dataset_split) without return types