Closed WangYao-GoGoGo closed 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"]))
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.