1漱抓、問題的提出:the sentiment polarity of a sentence is highly dependent on both content and aspect. For example, the sentiment polarity of “Staffs are not that friendly, but the taste covers all.” will be positive if the aspect is food but negative when considering the aspect service.
介紹兩個概念:
Aspect-level sentiment classification :給定一個句子和句子中出現(xiàn)的某個Aspect问芬,Aspect-level的目標(biāo)是分析出這個句子在給定Aspect上的情感傾向。aspect-level的情感分析相對document level來說粒度更細(xì)淳梦。
Attention-based(注意力機(jī)制):最早是在計算機(jī)視覺圖像領(lǐng)域提出來的伟骨,思想是人們在進(jìn)行觀察圖像的時候仔夺,并不是一次就把整幅圖像的每個位置像素都看過,大多樹會根據(jù)自己的需要南捂,將注意力集中到圖像的特定部分吴裤。在本文中,作者說溺健,The attention mechanism can concentrate on different parts of a sentence when different aspects are taken as input.
2麦牺、主要貢獻(xiàn):
We propose attention-based Long Short-Term memory for aspect-level sentiment classification. The models are able to attend different parts of a sentence when different aspects are concerned. Results show that the attention mechanism is effective.(提出了基于注意力機(jī)制的長短期記憶網(wǎng)絡(luò),用于方面級別的情感分類。當(dāng)涉及不同的方面時剖膳,這個模型能夠注意到句子的不同部分)
Since aspect plays a key role in this task, we propose two ways to take into account aspect information during attention: one way is to concatenate the aspect vector into the sentence hidden representations for computing attention weights, and another way is to additionally append the aspect vector into the input word vectors.(提出兩種方法加入aspect信息:一種是在隱藏層加魏颓,另一種是在輸入層加)
3、在本文中作者主要提出了三種模型:LSTM with Aspect Embedding(AE-LSTM)吱晒、Attention-based LSTM(AT-LSTM)甸饱、Attention-based LSTM with Aspect Embedding(ATAE-LSTM )
α是注意力權(quán)重向量,r是具有給定方面的句子的加權(quán)表示枕荞。Va 是aspect embedding (方面的詞向量)柜候。
最終句子的表示是:
? ? ?hN是隱藏層的最后一層。h ? is considered as the feature representation of a sentence given an input aspect.
然后作者添加了一個linear layer 將句子向量轉(zhuǎn)為向量e躏精,e的長度與最終分類的類別數(shù)目相等渣刷。然后輸入到softmax層。softmax層的作用是求出屬于每個類別的的概率矗烛。
4辅柴、本文的優(yōu)化目標(biāo)是交叉熵,學(xué)習(xí)方法是隨機(jī)梯度下降瞭吃,詞向量是用Twitter數(shù)據(jù)經(jīng)GloVe預(yù)訓(xùn)練的碌嘀。
數(shù)據(jù)集:We experiment on the dataset of SemEval 2014 Task4 ,The dataset consists of customers reviews.
任務(wù)定義:
任務(wù)1,Aspect-level Classification:Given a set of preidentified aspects, this task is to determine the polarity of each aspect.(指定一組aspect歪架,確定每個aspect上面的情感極性)
任務(wù)2股冗,Aspect-Term-level Classification :For a given set of aspects term within a sentence, this task is to determine whether the polarity of each aspect term is positive, negative or neutral.
結(jié)果:
5、說明
數(shù)據(jù)格式:
任務(wù)1的aspect 指的是aspectCategory和蚪,任務(wù)2的aspect指的是aspectTerm止状。
論文作者在寫這邊文章的時候主要和Tang etal ..,2015a這篇文章做了比較。Tang的文章采用LSTM解決一個句子針對Target情感分類問題攒霹。此時的Target指的是aspectTerm
注意力機(jī)制怯疤,作者使用可視化工具可視化了α,結(jié)果如下所示;
6催束、參考文獻(xiàn)
Attention-based LSTM for Aspect-level Sentiment Classification 作者Yequan Wang and Minlie Huang and Li Zhao* and Xiaoyan Zhu