Siraj Raval
In this video, we’ll use machine learning to help classify emotions! The example we’ll use is classifying a movie review as either positive or negative via TF Learn in 20 lines of Python.
Coding Challenge for this video:
https://github.com/llSourcell/How_to_do_Sentiment_Analysis
Ludo’s winning code:
https://github.com/ludobouan/pure-numpy-feedfowardNN
See Jie Xun’s runner up code:
https://github.com/jiexunsee/Neural-Network-with-Python
Tutorial on setting up an AMI using AWS:
http://www.bitfusion.io/2016/05/09/easy-tensorflow-model-training-aws/
More learning resources:
http://deeplearning.net/tutorial/lstm.html
https://www.quora.com/How-is-deep-learning-used-in-sentiment-analysis
https://gab41.lab41.org/deep-learning-sentiment-one-character-at-a-t-i-m-e-6cd96e4f780d#.nme2qmtll
http://k8si.github.io/2016/01/28/lstm-networks-for-sentiment-analysis-on-tweets.html
https://www.kaggle.com/c/word2vec-nlp-tutorial
Please Subscribe! And like. And comment. That’s what keeps me going.
Join us in our Slack channel:
wizards.herokuapp.com
If you’re wondering, I used style transfer via machine learning to add the fire effect to myself during the rap part.
Please support me on Patreon:
https://www.patreon.com/user?u=3191693
Follow me:
Twitter: https://twitter.com/sirajraval
Facebook: https://www.facebook.com/sirajology Instagram: https://www.instagram.com/sirajraval/ Instagram: https://www.instagram.com/sirajraval/
Signup for my newsletter for exciting updates in the field of AI:
https://goo.gl/FZzJ5w
Hit the Join button above to sign up to become a member of my channel for access to exclusive content!
Source
How do I save the trained model and reload it on another python program? Can you give an example on how to use the model, and the real world application?
the to_categorical line throws an error saying
shape mismatch: indexing arrays could not be broadcast together with shapes (22500,) (22500,2)
motherchod pada raheki nach rahe chutya sahi se pada beach mai backchodi kya hai
Getting an error not sure what I've done wrong:
Traceback (most recent call last):
File "sentiment.py", line 6, in <module>
valid_portion=0.1)
ValueError: too many values to unpack (expected 2)
Do you have the code for this demo hosted anywhere?
siraj… u tutorial are awesome…how to do sentimal anaysis on "english" language
Superb video for getting hands dirty on DL based text classification. For those interested in looking under the hood, this blog on "Breathrough approaches for Sentiment Analysis" would be a good read.
http://blog.paralleldots.com/technology/nlp/breakthrough-research-papers-and-models-for-sentiment-analysis/
YO! the jurassic park joke is amazing. Dudeeeeeeee
dude yer a god!!
hi sairaj great work
I want to transform one sentiment to other in the same word or statement,like where in interogative to where in exited form
pls guide a line of action
Why you do not finished the example? Seeing on screen only Training Step: xxx | total loss: xxx is trivial. You should add prediction and also conversion of numbers from pkl into words/
Dat Rap Doh! Straight fire bro! 😉
No German uses Waldeinsamkeit 😀
This man made Skynet!
If you used less time on memes and cringe rap lyrics, perhaps you could spend more time explaining this complex topic a little bit better.
How do you now what numbers to put in while training or testing a neural network?
thanks
How much time does it take to train the data on a local machine after installing tflearn?
Siraj Raval
Good, really good and clean information sharing. And your additional show is something else. Good Job.
Pharmaceutical Scientists should look into using double-speed Siraj videos as a test for new ADHD medications.
Hey Siraj, can you help me know "how the Emoticons are stored and retrieved for Sentiment Analysis?" Reply ASAP!
How can I test the model with a new text? I have saved the model.
Why pad if RNNs are ok for mixed length sequences?
"Waldeinsamkeit" is cool. I think we actually have a similar word in english, it's "Sonder" and it means that realization that everyone in the universe is the main character in a story just as much as you are. Their definitions don't sound very close, but to me at least they have a similar "ships pass in the night" feeling to them, you know? Which is an excellent example of the lingual subtleties a Lexicon would fail to catch! =D
where did you define the architecture of the network here? I see that you did it in network building but I'm trying to grasp what the final architecture looks like.
I can't get rid of Amazon think, the last thing that you did. Do I have to enter my card number?
I want to consult you on my Junior project. Can I?
Mister Siraj Raval, if subjectivity is negative does It mean it's opinion Or fact?
Hi Siraj Raval,
I am planning to create a twitter suicidality detection system. Can I get an advice on what to do to have a high accuracy of prediction? Can I apply deep learning with small data? Can I apply deep learning eith human interaction or human in the loop?
The embedding layer makes that words that have a similar meaning also are represented by similar vectors, right?
Can you please tell me which software(s) did you install in order to run this program? I'm facing problem in installing tensorflow. Thank you. Please reply asap.
please make a video on how to use the ReLu function.. unless you already did one, can you leave me to that video or article?
awesome video bro ???
love your approach but unfortunately not so good for beginners like my self, even if play the pause, replay or play in slower speed there are so many things i feel i need more explanation on. nevertheless I enjoy watching anyway 🙂
hey siraj! recently i have chosen sentiment analysis as our sophomore project but i have no knowledge of machine learning or anything related to it. could you suggest how i should get started? i want to analyze amazon reviews and classify them. thanks a ton!
I am using part of this video as a reference in my university report on automatic sarcasm detection. Thank you, Siraj, for this simple and concise video.
Great videos Siraj, brilliant. I'm looking for code to detect gender identification and age group of Tweets and text file contents. It's the study of author profiling. I've found https://pan.webis.de/clef18/pan18-web/author-profiling.html and Github projects like https://github.com/nschaetti/PAN18-Author-Profiling. Do you have a TF project on author profiling?
lol n_word
I like the rap
This dude really went from coding to rapping to coding as if nothing happening
everything is fine up until jupytr.. after that it doesnt work.!!!
Weird hand motion overload
Can you please show how this is done with SciKit Learn?
can i use the sentiment reviews set to train the model but then use it for normal messages (not reviews), to get the sentiment?
These memes are too distracting. Tone it down a little.