wireless911 / span-aste

a sample pytorch Implementation of ACL 2021 research paper "Learning Span-Level Interactions for Aspect Sentiment Triplet Extraction".
Apache License 2.0
38 stars 2 forks source link

请问作者为什么损失和原作者的不一样? #14

Closed micrazy closed 1 year ago

micrazy commented 1 year ago

您好,您的工作非常优秀,但我有个问题想请教下,原论文里,损失是取了ner_loss和relation_loss之和,但是您实现的时候用了loss = 0.2 * loss_ner + loss_relation,请问是出于什么考虑呢?

wireless911 commented 1 year ago

我在测试的时候给loss加了权重,你可以尝试下不同的权重得到的结果

micrazy commented 1 year ago

感谢作者答复~