Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
2ba147ec
Commit
2ba147ec
authored
Feb 01, 2020
by
Antonio Carlos Falcão Petri
Committed by
Julien Chaumond
Feb 01, 2020
Browse files
Fix typo in examples/utils_ner.py
"%s-%d".format() -> "{}-{}".format()
parent
9773e5e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/utils_ner.py
examples/utils_ner.py
+1
-1
No files found.
examples/utils_ner.py
View file @
2ba147ec
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment