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
846b1fd6
Commit
846b1fd6
authored
Apr 03, 2019
by
thomwolf
Browse files
Fix #419
parent
404adcda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/run_squad.py
examples/run_squad.py
+2
-2
No files found.
examples/run_squad.py
View file @
846b1fd6
...
@@ -85,9 +85,9 @@ class SquadExample(object):
...
@@ -85,9 +85,9 @@ class SquadExample(object):
s
+=
", doc_tokens: [%s]"
%
(
" "
.
join
(
self
.
doc_tokens
))
s
+=
", doc_tokens: [%s]"
%
(
" "
.
join
(
self
.
doc_tokens
))
if
self
.
start_position
:
if
self
.
start_position
:
s
+=
", start_position: %d"
%
(
self
.
start_position
)
s
+=
", start_position: %d"
%
(
self
.
start_position
)
if
self
.
start
_position
:
if
self
.
end
_position
:
s
+=
", end_position: %d"
%
(
self
.
end_position
)
s
+=
", end_position: %d"
%
(
self
.
end_position
)
if
self
.
start_
posi
tion
:
if
self
.
is_im
pos
s
i
ble
:
s
+=
", is_impossible: %r"
%
(
self
.
is_impossible
)
s
+=
", is_impossible: %r"
%
(
self
.
is_impossible
)
return
s
return
s
...
...
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