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
603b470a
Commit
603b470a
authored
Sep 16, 2019
by
erenup
Browse files
add warnning info
parent
4812a5a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/single_model_scripts/utils_multiple_choice.py
examples/single_model_scripts/utils_multiple_choice.py
+3
-1
No files found.
examples/single_model_scripts/utils_multiple_choice.py
View file @
603b470a
...
@@ -443,7 +443,9 @@ def _truncate_seq_pair(tokens_a, tokens_b, max_length):
...
@@ -443,7 +443,9 @@ def _truncate_seq_pair(tokens_a, tokens_b, max_length):
if
len
(
tokens_a
)
>
len
(
tokens_b
):
if
len
(
tokens_a
)
>
len
(
tokens_b
):
tokens_a
.
pop
()
tokens_a
.
pop
()
else
:
else
:
logger
.
info
(
'Attention! you are removing from question + options. Try to use a bigger max seq length!'
)
logger
.
info
(
'Attention! you are removing from token_b (swag task is ok). '
'If you are training ARC and RACE (you are poping question + options), '
'you need to try to use a bigger max seq length!'
)
tokens_b
.
pop
()
tokens_b
.
pop
()
...
...
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