สำรวจ polarity และ lexicon ในตัวของ qdap

การวิเคราะห์ความรู้สึกใน R

Ted Kwartler

Data Dude

polarity()

ตัวอย่าง subjectivity lexicon:

คำ Polarity
Amazing Positive
Bad Negative
Good Positive
... ...
Wonderful Positive
การวิเคราะห์ความรู้สึกใน R

Context cluster

ตัวอย่าง context cluster:
The DataCamp sentiment course is very GOOD for learning.

การวิเคราะห์ความรู้สึกใน R

Context cluster (ต่อ)

ตัวอย่าง context cluster:
The DataCamp sentiment course is very GOOD for learning.

คำ ประเภท จำนวนคำ
Very Amplifier 1
Good Polarized Term/Positive 1
คำอื่นทั้งหมด Neutral 7
การวิเคราะห์ความรู้สึกใน R

คำศัพท์ใน context cluster

  • Polarized Term - คำที่มีความหมายเชิงบวกหรือเชิงลบ
  • Neutral Term - คำที่ไม่มีอารมณ์เจือปน
  • Negator - คำที่กลับความหมายของ polarized term เช่น "not good"
  • Valence Shifters - คำที่ส่งผลต่อบริบทเชิงอารมณ์
    • Amplifiers - คำที่เพิ่มความเข้มของอารมณ์
    • De-Amplifiers - คำที่ลดความเข้มของอารมณ์
การวิเคราะห์ความรู้สึกใน R

การให้คะแนน context cluster

ตัวอย่าง context cluster:
The DataCamp sentiment course is very GOOD for learning.

คำ ประเภท จำนวนคำ ค่า Polarity
Very Amplifier 1 0.8
Good Polarized Term/Positive 1 1
คำอื่นทั้งหมด Neutral 7 0
การวิเคราะห์ความรู้สึกใน R

การคำนวณค่า Polarity

ประเภท จำนวนคำ ค่า Polarity
Amplifier 1 0.8
Polarized Term 1 1
Neutral 7 0
รวม 9 1.8

ตัวอย่าง Context Cluster
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...