xiaohan2012 / twitter-sent-dnn Goto Github PK
View Code? Open in Web Editor NEWDeep Neural Network for Sentiment Analysis on Twitter
License: MIT License
Deep Neural Network for Sentiment Analysis on Twitter
License: MIT License
Hi,
Running this on some testing data that I've hand-classified, I'm getting results as large as 9.0, although most inputs seems to behave well. I'll try to find out why, perhaps a strange Unicode issue.
In the file web_app.py:86, you expose publicly your tokens from Twitter. You should remove them and ask for new ones.
Hi guys. Thank you for this great tool. I wonder if you could put up an open source license so I can use it in my project? Thanks!
i am geting this error everytime i run sentiment.py
WORD2INDEX = pickle.load(open("data/twitter.pkl"))[3]
TypeError: a bytes-like object is required, not 'str'
please someone solve this error
Running a list of tweets in self.data through sentiment_score one at a time gives different results than batching that same data in 25 or 100 at a time through sentiment_scores_of_sents.
It's not just floating point issues either. I ran a list of 9068 tweets, and I found that the largest difference was 0.9579128974724299, and that 161 tweets in total had a different score in batch than in the single run that were greater than .5!
Code for running them one at a time:
out = []
for tweet in self.data:
out.append(sentiment_score(tweet))
Code for running the data in batches:
out = []
for batch in self.batch_data:
out.extend(sentiment_scores_of_sents(batch))
Code for batching the data:
temp_list = []
for x in cls.data:
if count >= 25:
cls.batch_data.append(temp_list)
temp_list = []
count = 0
temp_list.append(x)
count += 1
if len(temp_list) > 0:
cls.batch_data.append(temp_list)
there are a million errors in this code
This project is pretty good. However, I haven't found its detail description about it, such as what the training and test dataset is, and how about its performance. Could anyone provide more details?
Hi All,
The sentiment for the sentence : 'I like apple' or 'I like....' always seems to be negative. Why does this happen? Is there anyway to improve it?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.