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

Questions about Aspect accuracy #22

Open
ayanesakura opened this issue Jun 2, 2020 · 4 comments
Open

Questions about Aspect accuracy #22

ayanesakura opened this issue Jun 2, 2020 · 4 comments

Comments

@ayanesakura
Copy link

Hello,I have read your paper,excellent work! But in the paper you may did not mention how the accuracy is calculated, now I know the sentiment ACC is ACC of the classification task of sentence-pairs,but how about aspect acc?

@sunny678
Copy link

sunny678 commented Jun 2, 2020

Hi, aspect acc is the strict acc defined in [1]:
image

[1] Yukun Ma, Haiyun Peng, and Erik Cambria. 2018. Targeted aspect-based sentiment analysis via embedding commonsense knowledge into an attentive lstm. In Proceedings of AAAI.

@ayanesakura
Copy link
Author

Thank you for your reply, I calculated the apsect acc in that way, result is as below,the red is my result and the black is result in paper.
image
The sentiment acc is close to result in paper but the apsect accrate is too bad, maybe the reason is that the Bert model I used is different from the paper? I used the uncased_L-12_H-768_A-12 bert model. Or other reasons?

@sunny678
Copy link

sunny678 commented Jun 3, 2020

Did you use the "evaluation.py" file in the evaluation step? If not, you may use it:
python evaluation.py --task_name sentihood_NLI_M --pred_data_dir results/sentihood/NLI_M/test_ep_4.txt

@ayanesakura
Copy link
Author

Oh! I'm such an idiot, thank you!

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