Open smallbenxiong opened 1 week ago
Thank you for reporting the bug issue. You are welcome to create a pull request to address the bug based on your preferred method of modification.
We made some changes in directory structure, the new path https://github.com/PaddlePaddle/PaddleNLP/tree/develop/legacy/examples/text_to_knowledge
Thank you for reporting the bug issue. You are welcome to create a pull request to address the bug based on your preferred method of modification.
Thank you for your trust. I will submit my solution code in the coming days.
软件环境
重复问题
错误描述
In the script:
If
labels_can
is empty, accessinglabels_can[0][0]
may raise anIndexError
.Perhaps this is a way of modification:
2.
If the issue in 1 is resolved, a
KeyError
might still occur in this section of the script.稳定复现步骤 & 代码
Training with a small sample and adjusting the mapping JSON may lead to issues.