给定针对某个entity(比如餐馆)的一些句子,识别其中的aspect term。比如句子”The food was nothing much, but I loved the staff”,我们需要识别”food”和”staff”这两个aspect term。一个句子里可能会出现多个(或者零个)aspect term。另外aspect term可能包含多个词,比如”The hard disk is very noisy”,这里的aspect term是”hard disk”。
“I loved their fajitas” → {fajitas: positive} “I hated their fajitas, but their salads were great” → {fajitas: negative, salads: positive} “The fajitas are their first plate” → {fajitas: neutral} “The fajitas were great to taste, but not to see” → {fajitas: conflict}
<sentence id="813"> <text>All the appetizers and salads were fabulous, the steak was mouth watering and the pasta was delicious!!!</text> <aspectTerms> <aspectTerm term="appetizers" polarity="positive" from="8" to="18"/> <aspectTerm term="salads" polarity="positive" from="23" to="29"/> <aspectTerm term="steak" polarity="positive" from="49" to="54"/> <aspectTerm term="pasta" polarity="positive" from="82" to="87"/> </aspectTerms> <aspectCategories> <aspectCategory category="food" polarity="positive"/> </aspectCategories> </sentence>
下面是笔记本电脑的示例:
1 2 3 4 5 6 7
<sentence id="353"> <text>From the build quality to the performance, everything about it has been sub-par from what I would have expected from Apple.</text> <aspectTerms> <aspectTerm term="build quality" polarity="negative" from="9" to="22"/> <aspectTerm term="performance" polarity="negative" from="30" to="41"/> </aspectTerms> </sentence>
SemEval-2015 Task 12: Aspect Based Sentiment Analysis
(1) It fires up in the morning in less than 30 seconds and I have never had any issues with it freezing. → {LAPTOP#OPERATION_PERFORMANCE} (2) Sometimes you will be moving your finger and the pointer will not even move. → {MOUSE#OPERATION_PERFORMANCE} (3) The backlit keys are wonderful when you are working in the dark. → {KEYBOARD#DESIGN_FEATURES} (4) I dislike the quality and the placement of the speakers. {MULTIMEDIA DEVICES#QUALITY}, {MULTIMEDIA DEVICES#DESIGN_FEATURES} (5) The applications are also very easy to find and maneuver. → {SOFTWARE#USABILITY} (6) I took it to the shop and they said it would cost too much to repair it. → {SUPPORT#PRICE} (7) It is extremely portable and easily connects to WIFI at the library and elsewhere. → {LAPTOP#PORTABILITY}, {LAPTOP#CONNECTIVITY}
(1) Great for a romantic evening, but over-priced. → {AMBIENCE#GENERAL}, {RESTAURANT#PRICES} (2) The fajitas were delicious, but expensive. → {FOOD#QUALITY}, {FOOD# PRICES} (3)The exotic food is beautifully presented and is a delight in delicious combinations. → {FOOD#STYLE_OPTIONS}, {FOOD#QUALITY} (4) The atmosphere isn't the greatest , but I suppose that's how they keep the prices down. → {AMBIENCE#GENERAL}, {RESTAURANT# PRICES} (5) The staff is incredibly helpful and attentive. → {SERVICE# GENERAL}
(1) Great for a romantic evening, but over-priced. → {AMBIENCE#GENERAL, “NULL”}, {RESTAURANT# PRICES, “NULL”} (2) The fajitas were delicious, but expensive. → {FOOD#QUALITY, “fajitas”}, {FOOD# PRICES, “fajitas”} (3) The exotic food is beautifully presented and is a delight in delicious combinations. → {FOOD#STYLE_OPTIONS, “exotic food”}, {FOOD# QUALITY, “exotic food”} (4) The atmosphere isn't the greatest , but I suppose that's how they keep the prices down. → {AMBIENCE#GENERAL, “atmosphere”}, {RESTAURANT# PRICES, “NULL”} (5) The staff is incredibly helpful and attentive. → {SERVICE# GENERAL, “staff”}
(1) The applications are also very easy to find and maneuver. → {SOFTWARE#USABILITY, positive} (2) The fajitas were great to taste, but not to see”→ {FOOD#QUALITY, “fajitas”, positive}, {FOOD#STYLE_OPTIONS, “fajitas”, negative } (3) We were planning to get dessert, but the waitress basically through the bill at us before we had a chance to order. → {SERVICE# GENERAL, “waitress”, negative} (4) It does run a little warm but that is a negligible concern. → {LAPTOP#QUALITY neutral} (5) The fajitas are nothing out of the ordinary” → {FOOD#GENERAL, “fajitas”, neutral} (6) I bought this laptop yesterday. → {} (7) The fajitas are their first plate → {}
Review id:"1004293" Judging from previous posts this used to be a good place, but not any longer. {target:"NULL" category:"RESTAURANT#GENERAL" polarity:"negative" from:"-" to="-"} We, there were four of us, arrived at noon - the place was empty - and the staff acted like we were imposing on them and they were very rude. {target:"staff" category:"SERVICE#GENERAL" polarity:"negative" from:"75" to:"80"} They never brought us complimentary noodles, ignored repeated requests for sugar, and threw our dishes on the table. {target:"NULL" category:"SERVICE#GENERAL" polarity:"negative" from:"-" to:"-"} The food was lousy - too sweet or too salty and the portions tiny. {target:"food" category="FOOD#QUALITY" polarity="negative" from:"4" to:"8"} {target:"portions" category:"FOOD#STYLE_OPTIONS" polarity:"negative" from:"52" to:"60"} After all that, they complained to me about the small tip. {target:"NULL" category:"SERVICE#GENERAL" polarity:"negative" from:"-" to:"-"} Avoid this place! {target:"place" category:"RESTAURANT#GENERAL" polarity:"negative" from:"11" to:"16"}
其中from和to表示OTE字符串在句子开始和结束的下标。
SemEval-2016 Task 5: Aspect Based Sentiment Analysis
S1:The So called laptop Runs to Slow and I hate it! → {LAPTOP#OPERATION_PERFORMANCE, negative}, {LAPTOP#GENERAL, negative} S2:Do not buy it! → {LAPTOP#GENERAL, negative} S3:It is the worst laptop ever. → {LAPTOP#GENERAL, negative}
下面是餐馆的数据:
1 2 3 4 5 6 7 8 9 10 11 12 13
S1:I was very disappointed with this restaurant. → {RESTAURANT#GENERAL, “restaurant”, negative, from="34" to="44"} S2:I’ve asked a cart attendant for a lotus leaf wrapped rice and she replied back rice and just walked away. →{SERVICE#GENERAL, “cart attendant”, negative, from="12" to="26"} S3:I had to ask her three times before she finally came back with the dish I’ve requested. → {SERVICE#GENERAL, “NULL”, negative} S4:Food was okay, nothing great. → {FOOD#QUALITY, “Food”, neutral, from="0" to="4"} S5:Chow fun was dry; pork shu mai was more than usually greasy and had to share a table with loud and rude family. → {FOOD#QUALITY, “Chow fun”, negative, from="0" to="8"}, {FOOD#QUALITY, “pork shu mai”, negative, from="18" to="30"}, {AMBIENCE#GENERAL, “NULL”, negative} S6:I/we will never go back to this place again. → {RESTAURANT#GENERAL, “place”, negative, from="32" to="37"}
Review id:RST1 (Restaurant) "I was very disappointed with this restaurant. I’ve asked a cart attendant for a lotus leaf wrapped rice and she replied back rice and just walked away. I had to ask her three times before she finally came back with the dish I’ve requested. Food was okay, nothing great. Chow fun was dry; pork shu mai was more than usually greasy and had to share a table with loud and rude family. I/we will never go back to this place again."
Review id: RST2 (Restaurant) “This little place has a cute interior decor and affordable city prices. The pad seew chicken was delicious, however the pad thai was far too oily. I would just ask for no oil next time.”