qdap की polarity और बिल्ट-इन लेक्सिकॉन को समझें

R में Sentiment Analysis

Ted Kwartler

Data Dude

polarity()

एक उदाहरण subjectivity lexicon:

Word Polarity
Amazing Positive
Bad Negative
Good Positive
... ...
Wonderful Positive
R में Sentiment Analysis

Context cluster

उदाहरण context cluster:
The DataCamp sentiment course is very GOOD for learning.

R में Sentiment Analysis

Context cluster, आगे

उदाहरण 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
R में Sentiment Analysis

Context cluster शब्दावली

  • Polarized Term - सकारात्मक/नकारात्मक से जुड़े शब्द
  • Neutral Term - कोई भावनात्मक संदर्भ नहीं
  • Negator - जो polarized अर्थ पलट दें, जैसे "not good"
  • Valence Shifters - शब्द जो भावनात्मक संदर्भ बदलते हैं
    • Amplifiers - जो भावनात्मक तीव्रता बढ़ाएँ
    • De-Amplifiers - जो भावनात्मक तीव्रता घटाएँ
R में Sentiment Analysis

Context cluster स्कोरिंग

उदाहरण 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
R में Sentiment Analysis

Polarity गणना

Class Word Count Polarity Value
Amplifier 1 0.8
Polarized Term 1 1
Neutral 7 0
Sum 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 में Sentiment Analysis

अभ्यास करते हैं!

R में Sentiment Analysis

Preparing Video For Download...