探索 qdap 的極性與內建詞彙庫

R 情感分析

Ted Kwartler

Data Dude

polarity()

主觀性詞彙庫範例:

Word Polarity
Amazing Positive
Bad Negative
Good Positive
... ...
Wonderful Positive
R 情感分析

情境叢集

情境叢集範例:
The DataCamp sentiment course is very GOOD for learning.

R 情感分析

情境叢集(續)

情境叢集範例:
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
R 情感分析

情境叢集術語表

  • Polarized Term-帶正向/負向意涵的詞彙
  • Neutral Term-無情緒語境的詞
  • Negator-反轉極性的詞,例如「not good」
  • Valence Shifters-會影響情緒語境的詞
    • Amplifiers-增強情緒強度的詞
    • De-Amplifiers-減弱情緒強度的詞
R 情感分析

情境叢集評分

情境叢集範例:
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
R 情感分析

極性計算

Class Word Count Polarity Value
Amplifier 1 0.8
Polarized Term 1 1
Neutral 7 0
Sum 9 1.8

情境叢集範例
The DataCamp sentiment course is very GOOD for learning.

  1. 1 + 0.8 = 1.8
  2. 1+1+7 = 9
  3. $$\frac{1.8}{\sqrt{9}}$$

答案:0.6

R 情感分析

一起來練習吧!

R 情感分析

Preparing Video For Download...