Fix typo in examples/utils_ner.py
"%s-%d".format() -> "{}-{}".format()
This commit is contained in:
parent
9773e5e0d9
commit
2ba147ecff
|
@ -73,7 +73,7 @@ def read_examples_from_file(data_dir, mode):
|
|||
# Examples could have no label for mode = "test"
|
||||
labels.append("O")
|
||||
if words:
|
||||
examples.append(InputExample(guid="%s-%d".format(mode, guid_index), words=words, labels=labels))
|
||||
examples.append(InputExample(guid="{}-{}".format(mode, guid_index), words=words, labels=labels))
|
||||
return examples
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue