警告的详细内容:
Be aware, overflowing tokens are not returned for the setting you have chosen, i.e. sequence pairs with the 'longest_first' truncation strategy. So the returned list will always be empty even if some tokens have been removed.
解决办法:
在使用transformers的文件中加入:
import transformers
transformers.logging.set_verbosity_error()
其含义:只报告错误信息,将详细程度设置为ERROR级别。
其他详细内容请查看:huggingface