Skip to content
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

运行问题 #51

Open
Benny-Yu-stuc opened this issue Dec 10, 2024 · 3 comments
Open

运行问题 #51

Benny-Yu-stuc opened this issue Dec 10, 2024 · 3 comments

Comments

@Benny-Yu-stuc
Copy link

Benny-Yu-stuc commented Dec 10, 2024

作者您好,我在运行MNER代码时,模仿您的bash中的设置进行了run.py程序中的参数设置,但是运行时控制台一直显示loss为NAN, 请问这是什么原因呢12/10/2024 19:42:40 - INFO - main -
precision recall f1-score support

      AD     0.0000    0.0000    0.0000         0
     LOC     0.0000    0.0000    0.0000       731
    MISC     0.0000    0.0000    0.0000       701
     ORG     0.0000    0.0000    0.0000      1674
     PER     0.0000    0.0000    0.0000      2943

micro avg 0.0000 0.0000 0.0000 6049
macro avg 0.0000 0.0000 0.0000 6049
weighted avg 0.0000 0.0000 0.0000 6049 打印出的方阵是这种样式的

@flow3rdown
Copy link
Contributor

您好,请您检查一下修改的参数是否正确以及安装的包的版本是否与requirements.txt一致。

@Benny-Yu-stuc
Copy link
Author

您好,参数设置是一样的,但是requirements.txt里边的dataclasses没有对应的版本号,目前好像只有python=3.6才可以下载0.8版本的dataclasses

@Benny-Yu-stuc
Copy link
Author

您好 除了这个dataclasses版本之外,剩下的部分我完全按照您的readme进行配置,还是不可行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants