Fix typo in examples/utils_ner.py

"%s-%d".format() -> "{}-{}".format()
This commit is contained in:
Antonio Carlos Falcão Petri 2020-02-01 11:35:41 -03:00 committed by Julien Chaumond
parent 9773e5e0d9
commit 2ba147ecff
1 changed files with 1 additions and 1 deletions

View File

@ -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