Include Negations in Dictionary based Sentiment Approach
katrin_kandlbin
MemberPosts:2Contributor I
Hi all,
I want to use the dictionary based sentiment approach for texts by using a self-created dictionary.
The dictionary sentiment approach does not account for negations as far as I know.
For example: Today I wasnotreallyproductive.
The word "productive" ispositivebut because of the "not" the whole sentence has anegativemeaning instead of positive.
How does the dictionary based sentiment approach of Rapidminer account for this issue?
All the best,
Katrin
Tagged:
0
Answers
Hi Katrin,
welcome to the community! I've written the operator myself and I am very happy that you use it. The current version of the operator does not handle negations. Negations are in general a tricky thing also in more sophisticated approaches like SVMs. I am not sure how this dictionary based approach could handle this. If you have a solution in mind I am happy to have a look if we can implement this.
Cheers,
Martin
Dortmund, Germany
Hi,
Negation is in fact only a small part of the problem: imagine the sentence "probably a possible tumor" in the notes of a radiologist.
Sven
Hi Martin,
first of all: happy new year. Thank you very much for your reply.
One possible solution to account for negations might be to include another "dictionary" of self-created word list which consists of negation words.
This word list is applied to the same text corpus as the sentiment dictionary in the following way:
Do you think this might work?
Best,
Katrin
Hi@katrin_kandlbin,
i've implemented this (without counting but same idea). I will share a preview version of this via e-mail since i need to write some docs and it needs to run through our internal code-quality process before it appears on market place.
Best,
Martin
Dortmund, Germany