View on GitHub

Twitter-sent-dnn

Deep Neural Network for Sentiment Analysis on Twitter

download .ZIPdownload .TGZ

What is it

A Python library that allows to:

Of course, any text string can be fed, theoratically speaking. But the predictor is trained on labelled tweets so it would be more appropriate to predict tweets' sentiment.

>> from sentiment import sentiment_score
>> print sentiment_score(u"I love you")
0.9999

Online Demo

Click here

Algorithm

A Convolutional Neural Network for Modelling Sentences

Technical choices

Training techniques

  1. Fan-in, fan-out initialization
  2. Dropout
  3. AdaDelta

Contributors

Han Xiao(@xiaohan2012) and Yao Lu(@yaolubrain)