document-level-classification icon indicating copy to clipboard operation
document-level-classification copied to clipboard

截断问题

Open chengturbo opened this issue 1 year ago • 1 comments

作者你好,在bert+Overlap tokenizer.batch_encode_plus报错,貌似pad=True? ValueError: Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' 'truncation=True' to have batched tensors with the same length. python-BaseException

chengturbo avatar Aug 15 '23 01:08 chengturbo

你好,请问解决了么?

Stubborn142857 avatar Sep 05 '23 07:09 Stubborn142857