6. Positive or Negative?
This is a good book!
This is a good book!
I like it!
Positive
The first chapter is good,
but the rest is terrible
Negative
(more)
Positive
This is a bad book! Negative
13. This is a good book!
Dictionary
like 1
good 2
bad -2
terrible -3
2
This is a good book!
I like it!
Positive
3
The first chapter is good,
but the rest is terrible
-1 Negative
(more)
Positive
This is a bad book! -2 Negative
25. It seems we lose some
information
• Nice book! Though it is lack of advanced
topics. It’s still good for beginners.
Positive: 3
26. Separate to multiple
sentences first
• Nice book!
• Though it is lack of advanced topics.
• It’s still good for beginners.
Positive
Negative
Positive
30. But we still miss some
information in another case
It’s a bad idea to buy this book.
Negative
Negative
The first chapter is good,
but the rest is terrible and confusing
At least the customer mentioned something good,
but it’s not recorded
31. Let’s count Pos & Neg
separately
The first chapter is good,
but the rest is terrible and confusing
It’s a bad idea to buy this book.
Neg: -5
Neg: -3
Pos:3
36. Training Data
• This is a good book! Postive
• This is a awesome book! Postive
• This is a bad book! Negative
• This is a terrible book! Negative
37. • This is a good book! Postive
• This is a awesome book! Postive
• This is a bad book! Negative
• This is a terrible book Negative
Model
This is a good article
This is a bad article
Trained Model
Postive
Negative
41. Real Case
• Movie Review Data
http://www.cs.cornell.edu/people/pabo/movie-review-data/
• 5331 positive reviews & 5331 negative reviews
labelled by human.