[英]How to map aspects to reviews in sentiment analysis?
I am doing sentiment analysis on the aspects of food reviews in python.我正在对 python 中的食品评论方面进行情感分析。 If the review is Eg: "Biryani was good and the atmosphere was bad", it should be tagged as {[food,1],[ambience,-1]} (ie) Food should be mapped to briyani and ambience to atmosphere.如果评论是例如:“Biryani 很好,气氛很差”,它应该被标记为 {[food,1],[ambience,-1]} (即)食物应该映射到 briyani 和氛围到气氛。
Could you please help me to solve this??你能帮我解决这个问题吗? Is there any pre defined dictionaries in python to handle these food reviews to map them?? python 中是否有任何预定义的字典来处理这些对 map 的食品评论?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.