您好,我正在复现您的代码,请问对文本分类任务是只能实现二分类还是可以实现多分类呢。我用自己的多类数据训练时报错:
Traceback (most recent call last):
File "run_kbert_cls.py", line 578, in
main()
File "run_kbert_cls.py", line 557, in main
result = evaluate(args, False)
File "run_kbert_cls.py", line 393, in evaluate
print("Acc. (Correct/Total): {:.4f} ({}/{}) ".format(correct/len(dataset), correct, len(dataset)))
ZeroDivisionError: division by zero
您好,我正在复现您的代码,请问对文本分类任务是只能实现二分类还是可以实现多分类呢。我用自己的多类数据训练时报错: Traceback (most recent call last): File "run_kbert_cls.py", line 578, in
main()
File "run_kbert_cls.py", line 557, in main
result = evaluate(args, False)
File "run_kbert_cls.py", line 393, in evaluate
print("Acc. (Correct/Total): {:.4f} ({}/{}) ".format(correct/len(dataset), correct, len(dataset)))
ZeroDivisionError: division by zero