Algorithm: review sidedness calculation
| Input: review text with N sentences | |
| 1 | separate review into sentences i = 1, 2, …, N |
| 2 | for sentence i = 1, 2, …, N do |
| 3 | sentimenti ← calculate sentiment score of sentencei |
| 4 | End |
| 5 | positive sentiment score of review (pos) ← |
| 6 | negative sentiment score of review (neg) ← |
| 7 | Outcome: review sidedness ← z-score(pos) × z-score(neg) |
| 8 | End |
| Input: | |
| 1 | |
| 2 | for |
| 3 | |
| 4 | End |
| 5 | |
| 6 | |
| 7 | Outcome: |
| 8 | End |
Sharing content requires targeting cookies to be enabled. Please update your cookie preferences to use this feature.