File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ def __call__(self,
616
616
stride = stride ,
617
617
is_split_into_words = is_split_into_words ,
618
618
pad_to_max_seq_len = pad_to_max_seq_len ,
619
- truncation_strategy = "longest_first" ,
619
+ truncation_strategy = truncation_strategy ,
620
620
return_position_ids = return_position_ids ,
621
621
return_token_type_ids = return_token_type_ids ,
622
622
return_attention_mask = return_attention_mask ,
@@ -629,7 +629,7 @@ def __call__(self,
629
629
text_pair = text_pair ,
630
630
max_seq_len = max_seq_len ,
631
631
pad_to_max_seq_len = pad_to_max_seq_len ,
632
- truncation_strategy = "longest_first" ,
632
+ truncation_strategy = truncation_strategy ,
633
633
return_position_ids = return_position_ids ,
634
634
return_token_type_ids = return_token_type_ids ,
635
635
return_attention_mask = return_attention_mask ,
You can’t perform that action at this time.
0 commit comments