Icon

Sentiment_Text_Mining_Audit_Ready

Annotations and comments
  • 2. Counts, balance and duplicate sensitivity Primary corpus keeps all 3,000 rows. Duplicate diagnostics and 2,983-row sensitivity branch are separate.
  • 1. Import, label and combine the three sources Three tab-separated files, Source added before concatenation, binary label mapped to Sentiment.
  • 4. Unigrams, TF-IDF, source/sentiment comparisons and bigrams Inspect the ranked GroupBy/Sorter outputs and both visualization nodes after execution.
  • 3. Text normalization and cleaning Control characters and contractions first, then punctuation, numbers, lowercase, minimum length 2, and a custom stop-word list that preserves negators.
  • Create unigram bag of words from cleaned Document
  • Visualization 1: stacked counts by source and sentiment
  • Cleaning 3: lowercase
  • Stack IMDb and Amazon; retain common columns
  • Optional sensitivity branch | keep first exact observation
  • Flag exact duplicate observations; retain all rows in primary analysis
  • Recover Source and Category metadata after BoW
  • Recover Source and Category metadata
  • Bigrams by Sentiment/Category
  • Sensitivity counts by Source x Sentiment | expected 2,983 rows total
  • Duplicate audit counts | expected 17 extra observations
  • Overall bigram frequency
  • Overall cleaned unigram frequency
  • Q2: count Positive and Negative reviews
  • Q3: count reviews per source
  • Source x Sentiment counts | expected six cells of 500
  • Aggregate TF-IDF by Category and Term
  • Unigrams by Sentiment/Category
  • Unigrams by Source
  • Unigrams by Source x Sentiment
  • Smooth IDF = log(1 + N/df)
  • TF-IDF = TF rel * IDF
  • Cleaning 4: remove one-character terms; minimum length = 2
  • Create word bigrams; preserves negation context
  • Cleaning 2: remove terms representing numbers
  • Pivot sentiment into Positive and Negative count columns
  • Cleaning 1: remove punctuation
  • Map label 1 to Positive; label 0 to Negative
  • Cleaning 5: custom list only; preserve not, no, never, nor, neither, without, hardly, barely
  • Replace C1 controls; expand can't, won't and n't before tokenization
  • Text = NormalizedText | Source metadata = Source | Category = Sentiment
  • Absolute term frequency by document
  • Absolute bigram frequency by document
  • Relative TF = term count divided by document token count
  • Visualization 2: overall cleaned unigram tag cloud
  • Convert Term to string for grouping and display
  • Convert bigram Term to string
  • Convert TF-IDF branch Term to string

Nodes

Extensions

Links