What is it
A Python library that allows to:
- predict sentiment "positiveness score"(0-1) for tweets
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
- Tornado as the web framework
- Theano as the neural network training implementation
- Scipy as the neural network classification(online version) implementation
Training techniques
- Fan-in, fan-out initialization
- Dropout
- AdaDelta
Contributors
Han Xiao(@xiaohan2012) and Yao Lu(@yaolubrain)