From 603b470a3d855c5187564701c475cfef5826c224 Mon Sep 17 00:00:00 2001 From: erenup Date: Mon, 16 Sep 2019 18:53:37 +0800 Subject: [PATCH] add warnning info --- examples/single_model_scripts/utils_multiple_choice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/single_model_scripts/utils_multiple_choice.py b/examples/single_model_scripts/utils_multiple_choice.py index d8ce76f550..7abcc5e1e9 100644 --- a/examples/single_model_scripts/utils_multiple_choice.py +++ b/examples/single_model_scripts/utils_multiple_choice.py @@ -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()