ABSA-BERT-pair icon indicating copy to clipboard operation
ABSA-BERT-pair copied to clipboard

Questions about Aspect accuracy

Open ayanesakura opened this issue 4 years ago • 4 comments

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?

ayanesakura avatar Jun 02 '20 06:06 ayanesakura

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.

sunny678 avatar Jun 02 '20 13:06 sunny678

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?

ayanesakura avatar Jun 03 '20 01:06 ayanesakura

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

sunny678 avatar Jun 03 '20 02:06 sunny678

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

ayanesakura avatar Jun 03 '20 02:06 ayanesakura