(self, lines, set_type)
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, lines, set_type):
        """Creates examples for the training and dev sets."""
        examples = []
        for (i, line) in enumerate(lines):
            guid = "%s-%s" % (set_type, i)
            text_a = line["sentence1"]
            text_b = line["sentence2"]
            label = str(line["label"]) if set_type != 'test' else 'neutral'
            if label.strip()=='-':
                continue
            examples.append(
                InputExample(guid=guid, text_a=text_a, text_b=text_b, label=label))
        return examples
def _create_examples ( self , lines , set_type ) : examples = [ ] for ( i , line ) in enumerate ( lines ) : guid = "%s-%s" % ( set_type , i ) text_a = line [ "sentence1" ] text_b = line [ "sentence2" ] label = str ( line [ "label" ] ) if set_type != 'test' else 'neutral' if label . strip ( ) == '-' : continue examples . append ( InputExample ( guid = guid , text_a = text_a , text_b = text_b , label = label ) ) return examples