mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 10:12:23 +06:00
add warnning info
This commit is contained in:
parent
4812a5a767
commit
603b470a3d
@ -443,7 +443,9 @@ def _truncate_seq_pair(tokens_a, tokens_b, max_length):
|
||||
if len(tokens_a) > len(tokens_b):
|
||||
tokens_a.pop()
|
||||
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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user