class_docstr: Processor for the MRPC data set (GLUE version).
docstr: Creates examples for the training and dev sets.
docstr_tok: ["Creates","examples","for","the","training","and","dev","sets","."]
code: def _create_examples(lines, set_type):
      """Creates examples for the training and dev sets."""
      examples = []
      if set_type == "train" or set_type == "dev":
          for i, line in enumerate(lines):
              if i == 0:
                  continue
              guid = "%s-%s" % (set_type, i)
              text_a = tx.utils.compat_as_text(line[0])
              # Single sentence classification, text_b doesn't exist
              text_b = None
              label = tx.utils.compat_as_text(line[1])
              examples.append(
                  InputExample(
                      guid=guid,
                      text_a=text_a,
                      text_b=text_b,
                      label=label,
                  )
              )
      if set_type == "test":
          for i, line in enumerate(lines):
              if i == 0:
                  continue
              guid = "%s-%s" % (set_type, i)
              text_a = tx.utils.compat_as_text(line[1])
              # Single sentence classification, text_b doesn't exist
              text_b = None
              label = "0"  # arbitrary set as 0
              examples.append(
                  InputExample(
                      guid=guid,
                      text_a=text_a,
                      text_b=text_b,
                      label=label,
                  )
              )
      return examples
  
imports: import os
  import csv
  import collections
  import tensorflow
  import texar.tf
label_desc: Use image node_id 5 for calling the SSTProcessor obj's underlying member method code with example usage: obj._create_examples(lines, set_type) and returns: examples