class_docstr: Processor for the CoLA 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 = []
      for i, line in enumerate(lines):
          # Only the test set has a header
          if set_type == "test" and i == 0:
              continue
          guid = "%s-%s" % (set_type, i)
          if set_type == "test":
              text_a = tx.utils.compat_as_text(line[1])
              label = "0"
          else:
              text_a = tx.utils.compat_as_text(line[3])
              label = tx.utils.compat_as_text(line[1])
          examples.append(
              InputExample(
                  guid=guid, text_a=text_a, text_b=None, 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 ColaProcessor obj's underlying member method code with example usage: obj._create_examples(lines, set_type) and returns: examples