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

我在运行test_pro.py 时,报错,缺少文件 #3

Open
songsh opened this issue May 8, 2020 · 7 comments
Open

我在运行test_pro.py 时,报错,缺少文件 #3

songsh opened this issue May 8, 2020 · 7 comments

Comments

@songsh
Copy link

songsh commented May 8, 2020

No such file or directory: './output/best_ner.bin', 从哪找

@guangze233
Copy link

No such file or directory: './output/best_ner.bin', 从哪找

还目录是程序新建的。运行NER_main.py,会训练NER模型并保存在新建的/output目录下

@997261095
Copy link
Owner

997261095 commented May 10, 2020 via email

@songsh
Copy link
Author

songsh commented May 11, 2020

感谢,只是跑这个best_ner.bin 花了很长时间,best_sim.bin 跑了天都没跑完

@songsh
Copy link
Author

songsh commented May 17, 2020

{'0': {'precision': 0.972353061642433, 'recall': 0.8919572619466949, 'f1-score': 0.9304216830579677, 'support': 425
85}, '1': {'precision': 0.7982297324481995, 'recall': 0.8659973810563073, 'f1-score': 0.8307338009002407, 'support'
: 4582}, '2': {'precision': 0.8254122574131548, 'recall': 0.934903223073991, 'f1-score': 0.8767525916511101, 'suppo
rt': 23611}, 'accuracy': 0.9046031252649128, 'macro avg': {'precision': 0.8653316838345958, 'recall': 0.89761928869
23311, 'f1-score': 0.8793026918697727, 'support': 70778}, 'weighted avg': {'precision': 0.9120624003772734, 'recall
': 0.9046031252649128, 'f1-score': 0.906064526974806, 'support': 70778}}

这是打印出来的ret 值, 是把micro avg 改成 weighted avg ?

@Annielina
Copy link

{'0': {'precision': 0.972353061642433, 'recall': 0.8919572619466949, 'f1-score': 0.9304216830579677, 'support': 425
85}, '1': {'precision': 0.7982297324481995, 'recall': 0.8659973810563073, 'f1-score': 0.8307338009002407, 'support'
: 4582}, '2': {'precision': 0.8254122574131548, 'recall': 0.934903223073991, 'f1-score': 0.8767525916511101, 'suppo
rt': 23611}, 'accuracy': 0.9046031252649128, 'macro avg': {'precision': 0.8653316838345958, 'recall': 0.89761928869
23311, 'f1-score': 0.8793026918697727, 'support': 70778}, 'weighted avg': {'precision': 0.9120624003772734, 'recall
': 0.9046031252649128, 'f1-score': 0.906064526974806, 'support': 70778}}

这是打印出来的ret 值, 是把micro avg 改成 weighted avg ?

您好,您训练完了吗,是不是把micro avg 改成 weighted avg

@wuhq1
Copy link

wuhq1 commented Apr 1, 2021

No such file or directory: './output/best_ner.bin', 从哪找

还目录是程序新建的。运行NER_main.py,会训练NER模型并保存在新建的/output目录下

error: the following arguments are required: --data_dir, --vob_file, 运行NER_main.py文件出现这样的错误。怎么处理?

@wangjitoan
Copy link

兄弟姐妹们,有训练出来的 可以发给我吗

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

6 participants