S
S
signalizator2012-06-21 10:29:09
PHP
signalizator, 2012-06-21 10:29:09

How to implement sentiment analysis of text?

It is necessary to determine the tone of comments on the site on a scale of points, taking into account phrases and turns.
For example: from 1 to 30 points is potentially negative, 30-60 is neutral, 60 and above is potentially positive.

At the moment, classification is carried out by reducing words to normal form, obtaining word forms and a Bayesian filter.

But such a system produces only fixed states and does not take into account phrases and phrases.
Theoretically, you can make many fixed states, but then training becomes difficult and resource-intensive.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
mephistopheies, 2012-06-21
@mephistopheies

as I understand it, you use the naive Bayes model, in which the probability of a positive assessment is calculated for a given set of words in a comment and multiplying by 100 you get points?

A
ash_kgd, 2012-06-21
@ash_kgd

www.sasbi.ru/sentiment-analiz/ this article will be useful for you.

F
Fahrenheit, 2012-06-21
@Fahrenheit

According to the "correct" - full syntactic and, if possible, semantic analysis (this is how we implement it). However, with a “budget” implementation, I would at least try to take into account a couple of points:
1) Anaphora resolution (attempts to guess which word the pronouns “this”, “he”, “it”, etc. refer to will allow you to get a better result in more complex cases than “blue sky is good”
2) Correct binding of negations (I wrote it and realized that it is not trivial to do it without a syntax tree, but you can at least try to take into account the main cases). This will make it possible to understand where the object is denied, where is the characteristic

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question