-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
训练结束后predict.py脚本获取不到标签问题 #3
Comments
建议打印prediction看看 |
您好,按照您的修改之后我的输出都是第一个标签了...我看了下任何句子的prediction几乎相等,这是什么原因呢... |
请问你这个问题解决了吗?我也遇到了,prediction结果都是[]。 |
我的第一个标签是空标签"|",所以会不一样 |
大家有用起来么?要不要加个QQ好友交流一下?qq:1840658279 |
prediction打印出来全是0...... |
是正常的,说明预测结果为空 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
训练结束后predict.py脚本获取不到标签问题
知乎上也有很多人说predict.py脚本获取到的标签为空,其实不是训练数据有问题或者轮次不够,作者的get_label 函数逻辑有一些小小的问题,我这里简单修改了一下,可以成功获取到标签,新的predict.py 的get_label 函数如下:
The text was updated successfully, but these errors were encountered: