Fix typo in examples/utils_ner.py
"%s-%d".format() -> "{}-{}".format()
This commit is contained in:
committed by
Julien Chaumond
parent
9773e5e0d9
commit
2ba147ecff
@@ -73,7 +73,7 @@ def read_examples_from_file(data_dir, mode):
|
|||||||
# Examples could have no label for mode = "test"
|
# Examples could have no label for mode = "test"
|
||||||
labels.append("O")
|
labels.append("O")
|
||||||
if words:
|
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
|
return examples
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user