lpq29743 / IAN

A TensorFlow implementation for "Interactive Attention Networks for Aspect-Level Sentiment Classification"
MIT License
99 stars 40 forks source link

Hello, I find a bug in your code #12

Open GW-S opened 4 years ago

GW-S commented 4 years ago

你好,我在你的代码里可能发现了一个bug. 在进过transfer处理后的train.txt文件里,我们可以看到,所有的aspect_term都是none,这样,就根本利用不到aspect的信息吧。

请问你是paper的作者本人吗……

lpq29743 commented 4 years ago

谢谢你的反馈

  1. 看了一下生成的文件,确实是有这个问题,但可能一开始没有,因为我写那段代码应该是有检查的,我短期内估计安排不出时间解决这个问题,如果你有兴趣,欢迎提pull request
  2. 我非paper作者本人
CodeStuart commented 4 years ago

Try changing target to term on lines 23 and 27

nicolay-r commented 4 years ago

@Shengguowei, recently i have encountered an equal weights across aspects and contexts in my experiments. Here is a pull-request/fix.