run_ner.py
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 = tokenization.convert_to_unicode(line[0])
            label = tokenization.convert_to_unicode(line[1])
            examples.append(
                InputExample(guid=guid, text=text, label=label))
        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):
        examples = []
        for (i, line) in enumerate(lines):
            guid = "%s-%s" % (set_type, i)
            text = tokenization.convert_to_unicode(line[0])
            label = tokenization.convert_to_unicode(line[1])
            examples.append(
                InputExample(guid=guid, text=text, 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 = tokenization . convert_to_unicode ( line [ 0 ] ) label = tokenization . convert_to_unicode ( line [ 1 ] ) examples . append ( InputExample ( guid = guid , text = text , label = label ) ) 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."""
self
lines
set_type