𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Machine Learning for Emotion Analysis in Python: Build AI-powered tools for analyzing emotion using natural language processing

✍ Scribed by Ahmad Tariq, Allan Ramsay,


Publisher
Packt Publishing
Year
2023
Tongue
English
Leaves
334
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


The AI winter has long thawed, but many organizations are still failing to harness the power of machine learning (ML). If you want to tap that potential and add value to your own business with cutting-edge emotion analysis, you’ve found what you need in this trusty guide.
In Machine Learning for Emotion Analysis, you’ll take your foundational data science skills and grow them in the exciting realm of emotion analysis. With its practical approach, you’ll be equipped with everything you need to give your company a clear insight into what your customers are thinking.

This no-nonsense guide jumps right into the practicalities of emotion analysis, teaching you how to preprocess data, build a serviceable dataset, and ensure top-notch data quality. Once you’re set up for success, we get hands-on with complex ML techniques. This is where you go from the intermediate to the advanced, covering deep neural networks, support vector machines, conditional probabilities, and more, as you experience the full breadth of possibilities with emotion analysis. The book finally rounds out with a couple of in-depth use cases – a sort of sandbox for you to experiment with your newly acquired skill set.

By the end of this book, you’ll be ready to present yourself as a valuable asset to any organization that takes data science seriously.

✦ Table of Contents


Cover
Title Page
Copyright and Credits
Contributors
Table of Contents
Preface
Part 1:Essentials
Chapter 1: Foundations
Emotions
Categorical
Dimensional
Sentiment
Why emotion analysis is important
Introduction to NLP
Phrase structure grammar versus dependency grammar
Rule-based parsers versus data-driven parsers
Semantics (the study of meaning)
Introduction to machine learning
Technical requirements
A sample project
Logistic regression
Support vector machines (SVMs)
K-nearest neighbors (k-NN)
Decision trees
Random forest
Neural networks
Making predictions
A sample text classification problem
Summary
References
Part 2:Building and Using a Dataset
Chapter 2: Building and Using a Dataset
Ready-made data sources
Creating your own dataset
Data from PDF files
Data from web scraping
Data from RSS feeds
Data from APIs
Other data sources
Transforming data
Non-English datasets
Evaluation
Summary
References
Chapter 3: Labeling Data
Why labeling must be high quality
The labeling process
Best practices
Labeling the data
Gold tweets
The competency task
The annotation task
Buy or build?
Results
Inter-annotator reliability
Calculating Krippendorff’s alpha
Debrief
Summary
References
Chapter 4: Preprocessing – Stemming, Tagging, and Parsing
Readers
Word parts and compound words
Tokenizing, morphology, and stemming
Spelling changes
Multiple and contextual affixes
Compound words
Tagging and parsing
Summary
References
Part 3:Approaches
Chapter 5: Sentiment Lexicons and Vector-Space Models
Datasets and metrics
Sentiment lexicons
Extracting a sentiment lexicon from a corpus
Similarity measures and vector-space models
Vector spaces
Calculating similarity
Latent semantic analysis
Summary
References
Chapter 6: NaΓ―ve Bayes
Preparing the data for sklearn
NaΓ―ve Bayes as a machine learning algorithm
Naively applying Bayes’ theorem as a classifier
Multi-label datasets
Summary
References
Chapter 7: Support Vector Machines
A geometric introduction to SVMs
Using SVMs for sentiment mining
Applying our SVMs
Using a standard SVM with a threshold
Making multiple SVMs
Summary
References
Chapter 8: Neural Networks and Deep Neural Networks
Single-layer neural networks
Multi-layer neural networks
Summary
References
Chapter 9: Exploring Transformers
Introduction to transformers
How data flows through the transformer model
Input embeddings
Positional encoding
Encoders
Decoders
Linear layer
Softmax layer
Output probabilities
Hugging Face
Existing models
Transformers for classification
Implementing transformers
Google Colab
Single-emotion datasets
Multi-emotion datasets
Summary
References
Chapter 10: Multiclassifiers
Multilabel datasets are hard to work with
Confusion matrices
Using β€œneutral” as a label
Thresholds and local thresholds
Multiple independent classifiers
Summary
Part 4:Case Study
Chapter 11: Case Study – The Qatar Blockade
The case study
Short-term changes
Long-term changes
Proportionality revisited
Summary
Index
Other Books You May Enjoy


πŸ“œ SIMILAR VOLUMES


Machine Learning for Emotion Analysis in
✍ Allan Ramsay, and Tariq Ahmad πŸ“‚ Library πŸ“… 2023 πŸ› Packt Publishing Pvt. Ltd. 🌐 English

Kickstart your emotion analysis journey with this hands-on, step-by-step guide to data science success Key Features Discover the ins and outs of the end-to-end emotional analysis workflow Explore the use of various ML models to derive meaningful insights from all sorts of data Hone your craft

Machine Learning and Python for Human Be
✍ Md Zia Uddin πŸ“‚ Library πŸ“… 2024 πŸ› CRC Press 🌐 English

<p><span>This book is a practical guide for individuals interested in exploring and implementing smart home applications using Python. Comprising six chapters enriched with hands-on codes, it seamlessly navigates from foundational concepts to cutting-edge technologies, balancing theoretical insights

Machine Learning and Python for Human Be
✍ Md Zia Uddin πŸ“‚ Library πŸ“… 2024 πŸ› CRC Press 🌐 English

<p><span>This book is a practical guide for individuals interested in exploring and implementing smart home applications using Python. Comprising six chapters enriched with hands-on codes, it seamlessly navigates from foundational concepts to cutting-edge technologies, balancing theoretical insights

Building Chatbots with Python: Using Nat
✍ Sumit Raj πŸ“‚ Library πŸ“… 2019 πŸ› Apress 🌐 English

Build your own chatbot using Python and open source tools. This book begins with an introduction to chatbots where you will gain vital information on their architecture. You will then dive straight into natural language processing with the natural language toolkit (NLTK) for building a custom langua

Building Chatbots with Python: Using Nat
✍ Sumit Raj πŸ“‚ Library πŸ“… 2019 πŸ› Apress 🌐 English

<div><p>Build your own chatbot using Python and open source tools. This book begins with an introduction to chatbots where you will gain vital information on their architecture. You will then dive straight into natural language processing with the natural language toolkit (NLTK) for building a custo