"INSTALL/git@developer.sourcefind.cn:dadigang/Ventoy.git" did not exist on "676ae725aecbddf9b1dcb2909c00c0d474edbefe"
Commit 2ba147ec authored by Antonio Carlos Falcão Petri's avatar Antonio Carlos Falcão Petri Committed by Julien Chaumond
Browse files

Fix typo in examples/utils_ner.py

"%s-%d".format() -> "{}-{}".format()
parent 9773e5e0
...@@ -73,7 +73,7 @@ def read_examples_from_file(data_dir, mode): ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment