def _create_examples(self, lines, set_type):
    """Creates examples for the training and dev sets."""
    examples = []
    sentence1_index = 0
    sentence2_index = 0
    for (i, line) in enumerate(lines):

      if i == 0:
        # Identify the sentence index
        for j, token in enumerate(line):
          if token.strip() == "sentence1":
            sentence1_index = j
          elif token.strip() == "sentence2":
            sentence2_index = j
        continue

      guid = "%s-%s" % (set_type, tokenization.convert_to_unicode(line[0]))
      text_a = tokenization.convert_to_unicode(line[sentence1_index])
      text_b = tokenization.convert_to_unicode(line[sentence2_index])
      if set_type == "test":
        label = "true"
      else:
        label = tokenization.convert_to_unicode(line[-1])
      examples.append(
          InputExample(guid=guid, text_a=text_a, text_b=text_b, label=label))
    return examples
Creates examples for the training and dev sets.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py