HUSTAI / uie_pytorch

PaddleNLP UIE模型的PyTorch版实现
Apache License 2.0
586 stars 99 forks source link

a bug for multi-text input #7

Open PrayChen opened 1 year ago

PrayChen commented 1 year ago

https://github.com/heiheiyoyo/uie_pytorch/blob/141ffa32596f29c83bce506cb5bcd6e503033fed/uie_predictor.py#L459

run uie_predictor.py there is a bug when your input are multi-texts , [a_long_text, a_short_text,....], and the a_long_text is longer than 512.

当输入是多个text, 且其中有个text是长于512的时候,会报错。