>> Positive" />
开发者

Determine the positivenes or negativeness of a generic statement

开发者 https://www.devze.com 2023-03-06 08:02 出处:网络
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

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 开发者_如何学Gogeneric, 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号