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

When training model, is it necessary to set args.do_eval=True? #12

Closed
WangYao-GoGoGo opened this issue Jan 1, 2022 · 0 comments
Closed

Comments

@WangYao-GoGoGo
Copy link

WangYao-GoGoGo commented Jan 1, 2022

if the parameter of args.do_eval is false. the entity_best and triple_best in save_file.save method will be none.
I found that do_eval parameter in the training command-line that you listed is none, so the default do_eval parameter will be False.

saved_file.save("best test result ner-p: {:.4f} \t ner-r: {:.4f} \t ner-f: {:.4f} \t re-p: {:.4f} \t re-r: {:.4f} \t re-f: {:.4f} ".format(entity_best["p"],
                        entity_best["r"], entity_best["f"], triple_best["p"], triple_best["r"], triple_best["f"]))

image

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

1 participant