(self, input_file)
return examples
Creates examples for the training and dev sets.
Creates examples for the training and dev sets.
Creates examples for the training and dev sets .
def _create_examples(self, input_file):
    """Creates examples for the training and dev sets."""
    examples = []
    with tf.gfile.Open(input_file) as f:
      reader = csv.reader(f)
      for i, line in enumerate(reader):

        label = line[0]
        text_a = line[1].replace('""', '"').replace('\\"', '"')
        examples.append(
            InputExample(guid=str(i), text_a=text_a, text_b=None, label=label))
    return examples
def _create_examples ( self , input_file ) : examples = [ ] with tf . gfile . Open ( input_file ) as f : reader = csv . reader ( f ) for i , line in enumerate ( reader ) : label = line [ 0 ] text_a = line [ 1 ] . replace ( '""' , '"' ) . replace ( '\\"' , '"' ) examples . append ( InputExample ( guid = str ( i ) , text_a = text_a , text_b = None , label = label ) ) return examples