deepnl icon indicating copy to clipboard operation
deepnl copied to clipboard

Train Emotion Specific Word Embeddings

Open shreshthamundra opened this issue 9 years ago • 1 comments

I am trying to generate emotion specific word embeddings with a similar spproach as SSWE. The sentiment is a three class label, positive negative and neutral. My emotion set has eight classes. Can you help me with the changes I need to make.

In reader.csv I have changes the default_polarities to a map of length 8. Are their any other changes. The code compiles but I am not sure if its producing correct word embeddings.

shreshthamundra avatar Jul 26 '16 12:07 shreshthamundra

There are changes to make in the loss function (in sentiwords.pyx line 139) and its derivative, which is currently a hinge loss on a single polarity value.

attardi avatar Jan 02 '17 15:01 attardi