Transition-based Directed Graph

2021-12-13  本文已影响0人  一个迷人的昵称

Transition-based Directed Graph Construction for Emotion-Cause Pair Extraction

基础介绍

方案方法

  1. 构建有向图
  2. 特征表示

构建

G=(V,R)为有标签有向图(edge-labeled directed graph),其中,

head node i\in{V}modifier node j\in{V}构建关系:i\stackrel{l}{\longrightarrow}j,其中l\in\{l_t, l_n\},其中,

是故,

至此,提出构建图的方法: a novel transition-based parser

parser由S表示,S=(\sigma, \beta, E, C, R),其中,

\Rightarrow action List A

论文定义了六种action(来源于观察经验):

image.png

其中,i表示stackbufferaction的元素索引。例如stack的top2个元素可以表示为:\sigma|\sigma_1|\sigma_2

具体来描述即:

一些约束:

\Rightarrow 此处给出一个例子,从初始的([], [1,2,3], \varnothing, \varnothing, \varnothing)到最终的([..., \], [], E, C, R)$,有文本:

image.png

可以有以下推导过程:

image.png

\Rightarrow Search Algorithm

对于本任务,可以定义:

因此,可以表示为对子句d_1^n寻找合适的action序列A^*A*=argmax_A p(A_1^m|d_1^n)

对于t时刻,模型的预测与当前的system state S_taction history A_1^{t-1}有关,是故:

image.png

其中a_tt时刻生成的action,S_(t+1)是根据a_t更新的system state

r_t表示t时刻的计算action a_t的表示,有:

image.png

其中,\mathcal{A}表示在给定当前parser state下合法的action,最终有:

image.png
上一篇 下一篇

猜你喜欢

热点阅读