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

Disable "vocab_article_source.json" #9

Open
Aichiniuroumian opened this issue Sep 15, 2023 · 5 comments
Open

Disable "vocab_article_source.json" #9

Aichiniuroumian opened this issue Sep 15, 2023 · 5 comments

Comments

@Aichiniuroumian
Copy link

Hi~@Nicozwy
Thank you so much for your amazing work, I have already star your work.
In the process of replicating your code, I also encountered an error that the file "vocab_article_source.json" was not found. I have tried the following method you gave me:
1, You can set ' 'vocab_article_source=None" in "tran_xxx.py "because the file "vocab_article_source.json" is no longer used.
2, You can simply create a new file with the name "vocab_article_source.json" because it is not used in the codes.
But I have encountered a loading error in the "vocab_article_source.json" file. Do I need to change anything other than the above solution?
Looking forward to your reply, have a good day!

@Nicozwy
Copy link
Owner

Nicozwy commented Sep 15, 2023

Setting ' 'vocab_article_source=None" in "train_xxx.py" can solve this problem. Try this https://drive.google.com/file/d/1QpqiK_R9PGG9NesTYqC8aLJhMZ0CYQ00/view?usp=sharing

@Aichiniuroumian
Copy link
Author

Setting ' 'vocab_article_source=None" in "train_xxx.py" can solve this problem. Try this https://drive.google.com/file/d/1QpqiK_R9PGG9NesTYqC8aLJhMZ0CYQ00/view?usp=sharing

Thank you very much for your timely reply!
I tried the "train_exp_fc5_LIAR_RAW2-backup.py" file you provided, but it still failed to load. I have noticed that the 'vocab_article_source.json' file is used in the "source_url = pjoin(data_url,filename)" in "reader5.py". May I ask how to comment it here?
I'm very sorry to bother you, thank you again ~🙂

@Nicozwy
Copy link
Owner

Nicozwy commented Sep 15, 2023

You should try to disable the loading function because ''vocab_article_source.json" is no longer used.
By the way, you may check what you have changed or directly use debugging mode.

@Aichiniuroumian
Copy link
Author

You should try to disable the loading function because ''vocab_article_source.json" is no longer used. By the way, you may check what you have changed or directly use debugging mode.

Thanks for your timely reply, I changed the two lines in reader5.py to the following, and it can run through.
# lm_ids_dict['report_domains'] = gen_domain_id(raw_data_list[6], device=_device)
lm_ids_dict['report_domains_ids'] = []
I would also like to ask you a question.
What does Ac, p, r and maf1 at the front of the training log mean? Is there any difference between them and eA, eP, eR and emaf1 at the back?
2023-09-15 21:12:11,103 - INFO: Ep[1]-Batch[2000/5033] Loss: 117.0914 [1.71:1.13:180.00], Ac: 0.0000, p: 0.0000, r: 0.0000, maf1: 0.000000|| eA: 0.8462, eP: 0.5031, eR: 0.5085, emaf1: 0.470164
Thank you again for your kind help!😊

@JasonGuo1
Copy link

7a7e65075b38e1112efacaea3a1b687
Thank you for your kind help and discuss.However, the training process doesn't seem quite right from the figure above. Did I make any mistakes?

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

3 participants