Coopercoppers / PFN

EMNLP 2021 - A Partition Filter Network for Joint Entity and Relation Extraction
MIT License
171 stars 20 forks source link

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

Closed WangYao-GoGoGo closed 2 years ago

WangYao-GoGoGo commented 2 years ago

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