BERT 情感分类 ValueError too many dimensions'str',情感标签映射成整数类别修复

这个 ValueError: too many dimensionsstr 报错在 BERT 情感分类任务里,基本都是标签数据还是字符串文本,没有提前转换成整型类别