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
bed38d3a
Commit
bed38d3a
authored
Feb 11, 2020
by
jiyeon
Committed by
Lysandre Debut
Feb 11, 2020
Browse files
Fix typo in src/transformers/data/processors/squad.py
parent
498d06e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/data/processors/squad.py
src/transformers/data/processors/squad.py
+1
-1
No files found.
src/transformers/data/processors/squad.py
View file @
bed38d3a
...
@@ -628,7 +628,7 @@ class SquadExample(object):
...
@@ -628,7 +628,7 @@ class SquadExample(object):
self
.
doc_tokens
=
doc_tokens
self
.
doc_tokens
=
doc_tokens
self
.
char_to_word_offset
=
char_to_word_offset
self
.
char_to_word_offset
=
char_to_word_offset
# Start
e
nd end positions only has a value during evaluation.
# Start
a
nd end positions only has a value during evaluation.
if
start_position_character
is
not
None
and
not
is_impossible
:
if
start_position_character
is
not
None
and
not
is_impossible
:
self
.
start_position
=
char_to_word_offset
[
start_position_character
]
self
.
start_position
=
char_to_word_offset
[
start_position_character
]
self
.
end_position
=
char_to_word_offset
[
self
.
end_position
=
char_to_word_offset
[
...
...
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