"IMG/git@developer.sourcefind.cn:dadigang/Ventoy.git" did not exist on "1bf3e73373ccf4d515e4b554b5d8e233aaf1e6f3"
Commit bed38d3a authored by jiyeon's avatar jiyeon Committed by Lysandre Debut
Browse files

Fix typo in src/transformers/data/processors/squad.py

parent 498d06e9
...@@ -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 end end positions only has a value during evaluation. # Start and 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[
......
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