Spico197 / DocEE

🕹️ A toolkit for document-level event extraction, containing some SOTA model implementations.
https://doc-ee.readthedocs.io/
MIT License
232 stars 36 forks source link

How to generate "dueefin_PTPCG_P1R1_wTgg.json" or Where is "dueefin_PTPCG_P1R1_wTgg.json" or What's its format #39

Closed TinaGioro closed 2 years ago

TinaGioro commented 2 years ago

Agreement

Problem

When I train the code about dueefin, I can't find dueefin_PTPCG_P1R1_wTgg.json file. My question is what the title says. Thanks for reading! Looking forward to your reply!

Spico197 commented 2 years ago

Hi, these files are generated during inferencing the submit files (the inferenced results), and they will be generated after the training process. Please provide the executive script and the whole training log if any error occurs.

TinaGioro commented 2 years ago

Thanks for replying! Just now I found the following setting in dee_task.py:
elif self.run_mode == "dueefin_w_tgg": self.train_file_name = "dueefin_train_w_tgg.json" self.dev_file_name = "dueefin_dev_w_tgg.json" self.test_file_name = "dueefin_dev_w_tgg.json" self.inference_file_name = "dueefin_submit_w_tgg.json" self.doc_lang = "zh" So no error will occur. But why you set self.test_file_name = "dueefin_dev_w_tgg.json"? Is it useless?

Spico197 commented 2 years ago

By setting self.test_file_name = "dueefin_dev_w_tgg.json", we could keep the program's logic unchanged across different datasets. Otherwise we have to change the training procedure for those that do not own an official test set.