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

About the result in your paper #9

Open
ItGirls opened this issue Dec 2, 2021 · 3 comments
Open

About the result in your paper #9

ItGirls opened this issue Dec 2, 2021 · 3 comments

Comments

@ItGirls
Copy link

ItGirls commented Dec 2, 2021

Hi, I did the experiments directly using your code(only commented 155/156/205/206 line in model.py and 209 line in data_loader.py, for the version of transformer is different with your's), and the result is different with the papers. I want to know if there anything I did wrong.

1. my experiment result:

TI: P:88.1, R:88.7, F:88.4
TC: P:74.0, R:81.7, F:77.7
AI: P:68.8, R:75.9, F:72.2
AC: P:66.9, R:73.9, F:70.2

2. the change:

2.1 for model.py

outputs = self.bert(
tokens,
attention_mask=mask,
token_type_ids=segment,
position_ids=None,
head_mask=None,
inputs_embeds=None,
# output_attentions=None,
# output_hidden_states=None,
)

2.2 for data_loader.py

change
inputs = self.tokenizer.encode_plus(data_content, add_special_tokens=True, max_length=self.seq_len, truncation=True, padding='max_length')
to

inputs = self.tokenizer.encode_plus(data_content, add_special_tokens=True, max_length=self.seq_len, pad_to_max_length=True)

@JiaweiSheng
Copy link
Owner

Hi. Due to the differences of environments (e.g., GPU version etc.), the neural model performance can be somewhat different. I think your results are still within normal range, and your experiments should be correct. You could also try some other random seeds to derive better results.

@JiaweiSheng
Copy link
Owner

Besides, I have updated the running log in our experiments, which is in logs/model.log.

@ItGirls
Copy link
Author

ItGirls commented Dec 3, 2021

Hi. Due to the differences of environments (e.g., GPU version etc.), the neural model performance can be somewhat different. I think your results are still within normal range, and your experiments should be correct. You could also try some other random seeds to derive better results.

Thank you for your reply.

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

2 participants