Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
syiswell c1abcf5588 | 1 year ago | |
---|---|---|
.. | ||
code | 1 year ago | |
data/aste_data_bert | 1 year ago | |
Boundary-Driven Table-Filling for Aspect Sentiment Triplet Extraction.pdf | 1 year ago | |
README.md | 1 year ago | |
README_EN.md | 1 year ago | |
poster.pdf | 1 year ago |
本仓库开源了以下论文的代码:
本文要解决的是Aspect-Based Sentiment Analysis(ABSA)问题中的Aspect Sentiment Triplet Extraction(ASTE)任务。
如下图所示,ASTE的目的是抽取用户评论中表达观点的方面情感三元组,一个元组包含三个部分:
{POS, NEG, NEU}
。以往的方法将本任务建模为一个表格填充问题(table-filling problem)。如下图所示,二维表中的每个元素为词与词之间的关系。该方法首先通过对角线抽取aspect和opinion,然后通过aspect和opinion定位对应的关系区域,通过投票的方法是确定aspect和opinion之间的关系。该方法存在诸多问题。比较明显的问题有两个:
POS
)。以往的工作尝试使用Span-based的方法来解决关系不一致的问题。这是一种可行的思路。但是该方法忽略了细粒度的词级别的信息,这正是表格填充方法的优点。
本文为了解决上述的两个问题,提出了边界驱动的表格填充方法(Boundary-Driven Table-Filling)。如下图所示,该方法将方面关系三元组转为二维表中的一个关系区域,因而将ASTE任务转化为关系区域的定位和分类。对关系区域整体进行分类可以解决了关系不一致的问题,那些边界错误的关系区域也可以通过将其分类为Invaild而移除。
此外,本文还提出了一种关系学习的方法来学习一个二维的表示。该方法包含三个部分:
BERT
中学习词级别的上下文表示。整体上,本文所提出方法的模型框架如下图所示。
本方法的主要实验结果如下表,详细的分析见论文。
├── code
│ ├── utils
│ │ ├── __init__.py
│ │ ├── aste_datamodule.py
| | └── aste_result.py
│ ├── model
│ │ ├── seq2mat.py
│ │ ├── table.py
│ │ ├── table_encoder
│ │ | └── resnet.py
| | └── bdtf_model.py
| ├── aste_train.py
| └── bash
│ ├── aste.sh
│ ├── aste_14res.sh
│ ├── aste_14lap.sh
│ ├── aste_15res.sh
| └── aste_16res.sh
└── data
└── aste_data_bert
├── V1
│ ├── 14res
| │ ├── train.json
| │ ├── dev.json
| │ └── test.json
│ ├── 14lap/...
│ ├── 15res/...
| └── 16res/...
└── V2/...
在code
目录下
chmod +x bash/*
。bash/aste_14lap.sh
。下面是aste_14lap.sh运行的结果。这里随机种子取的是40,计算设备为A100。
在V100上跑aste_14lap.sh,结果如下。
请注意,文章发布的性能都是在5个随机种子下运行然后取平均的结果,这与单次运行可能存在一些出入。
issues
提出,或者联系我zhangyc_hit@163.com
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》