Sentiment Analysis in R
Ted Kwartler
Data Dude
An example subjectivity lexicon:
| Word | Polarity |
|---|---|
| Amazing | Positive |
| Bad | Negative |
| Good | Positive |
| ... | ... |
| Wonderful | Positive |
Example context cluster:
The DataCamp sentiment course is very GOOD for learning.
Example context cluster:
The DataCamp sentiment course is very GOOD for learning.
| Term | Class | Word Count |
|---|---|---|
| Very | Amplifier | 1 |
| Good | Polarized Term/Positive | 1 |
| All other words | Neutral | 7 |
Example context cluster:
The DataCamp sentiment course is very GOOD for learning.
| Term | Class | Word Count | Polarity Value |
|---|---|---|---|
| Very | Amplifier | 1 | 0.8 |
| Good | Polarized Term/Positive | 1 | 1 |
| All other words | Neutral | 7 | 0 |
| Class | Word Count | Polarity Value |
|---|---|---|
| Amplifier | 1 | 0.8 |
| Polarized Term | 1 | 1 |
| Neutral | 7 | 0 |
| Sum | 9 | 1.8 |
Example Context Cluster
The DataCamp sentiment course is very GOOD for learning.
Answer: 0.6
Sentiment Analysis in R