Algorithm to determine how positive or negative a statement/text is

前端 未结 14 1454
北荒
北荒 2020-12-07 07:21

I need an algorithm to determine if a sentence, paragraph or article is negative or positive in tone... or better yet, how negative or positive.

For instance:

<
相关标签:
14条回答
  • 2020-12-07 08:19

    Ah, I remember one java library for this called LingPipe (commercial license) that we evaluated. It would work fine for the example corpus that is available at the site, but for real data it sucks pretty bad.

    0 讨论(0)
  • 2020-12-07 08:20

    There is a sub-field of natural language processing called sentiment analysis that deals specifically with this problem domain. There is a fair amount of commercial work done in the area because consumer products are so heavily reviewed in online user forums (ugc or user-generated-content). There is also a prototype platform for text analytics called GATE from the university of sheffield, and a python project called nltk. Both are considered flexible, but not very high performance. One or the other might be good for working out your own ideas.

    0 讨论(0)
提交回复
热议问题