简体   繁体   English

确定一般性陈述的正面或负面

[英]Determine the positivenes or negativeness of a generic statement

I want to know if a twit is positive or negative. 我想知道抽搐是正面还是负面。 For example: 例如:

thesis: jonas brothers eat charcoal "Jonas Brothers are going to eat charcoal" >>> Positive 论文:乔纳斯兄弟吃木炭“乔纳斯兄弟要吃木炭” >>>正面

"Jonas Brothers have nothing to do with charcoal" >>> Negative “乔纳斯兄弟与木炭无关” >>>负面

thesis: melmac is destroyed "Melmac is dead" >>> positive 论文:梅尔马克被毁“梅尔马克死了” >>>正面

"Alf is living with his friends in melmac" >>> negative “阿尔夫和他的朋友住在梅尔马克” >>>负面

I want to know if there's some kind of algorithm to do this, on a generic, non languaje specific basis. 我想知道是否有某种算法可以基于通用的,非特定语言的基础来执行此操作。

What's the easiest approach? 最简单的方法是什么? Thanks in advance. 提前致谢。

I think I good approach would be to keep a dictionary of negation statements : don't, isn't, nothing, etc. Find those keywords in a statement. 我认为我的好方法是保留否定语句字典:不,不是,什么也不做,等等。在语句中找到那些关键字。 You would also have to account for double negatives through a counting system. 您还必须通过计数系统解决双重否定问题。 For instance " I haven't not given an answer", is positive but contains negative words. 例如,“我没有给出答案”是肯定的,但包含否定词。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM