Unlocking Text Sentiment Analysis: Concepts, Tasks, and Huawei Cloud’s Advances

This article introduces the fundamentals of text sentiment analysis, explains its five key elements and task categories, and details Huawei Cloud’s practical implementations for word‑level, sentence‑level, and target‑level sentiment analysis, including lexicon construction and multi‑attribute modeling.

Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Unlocking Text Sentiment Analysis: Concepts, Tasks, and Huawei Cloud’s Advances

Basic Concepts

Why: With the widespread adoption of mobile internet, users routinely voice opinions online—product reviews, social‑media comments, policy feedback—creating valuable commercial insights. Companies can detect spikes in negative sentiment and respond quickly, which is a core use case of sentiment analysis.

What: Text sentiment analysis aims to extract five elements from unstructured comments—entity, aspect, sentiment, holder, and time. The entity and aspect together form the evaluation target, which can be identified and classified.

Figure 1 Sentiment analysis five elements
Figure 1 Sentiment analysis five elements

Task Types

Current research usually ignores holder and time, focusing on the remaining three elements. Simplified tasks include word‑level, sentence/paragraph‑level, and target‑level sentiment analysis.

Figure 3 Sentiment analysis task hierarchy
Figure 3 Sentiment analysis task hierarchy

Word‑Level Sentiment Analysis

The goal is to build a sentiment lexicon that assigns sentiment information to individual words. Two representation methods are common: discrete (e.g., {positive, negative, neutral}) and multidimensional (e.g., Valence‑Arousal‑Dominance, Evaluation‑Potency‑Activity).

Figure 8 Discrete sentiment model
Figure 8 Discrete sentiment model

Example: happy‑positive, birthday‑positive, car‑accident‑negative, disaster‑negative.

Multidimensional examples: the VAD model represents “car accident” as (2.05, 6.26, 3.76) on a scale of 1‑9.

Figure 9 Valence‑Arousal model
Figure 9 Valence‑Arousal model

Common Lexicon Construction Methods

Manual annotation yields high accuracy but is costly. Automated approaches start with seed words and expand labels using methods such as pointwise mutual information, label propagation on word graphs, or regression/classification models trained on seed features.

Figure 10 Common lexicon construction methods
Figure 10 Common lexicon construction methods

Our Progress (Word‑Level)

Using annotated seed lexicons and automated expansion, we built the industry’s largest multidimensional sentiment lexicon (≈6 million entries) based on the Valence‑Arousal model with values ranging from –1 to 1.

Figure 12 Example entries of the constructed lexicon
Figure 12 Example entries of the constructed lexicon

Sentence‑Level Sentiment Analysis

This task predicts the overall sentiment polarity of a sentence or document. It is a typical text‑classification problem, often solved with pre‑trained language models fine‑tuned on labeled data.

Figure 13 Sentence‑level sentiment analysis pipeline
Figure 13 Sentence‑level sentiment analysis pipeline

Our Progress (Sentence‑Level)

We have deployed sentiment models for e‑commerce, automotive, and social media domains, supporting Chinese text with binary labels (positive/negative) and confidence scores.

Figure 14 EI Experience Space examples
Figure 14 EI Experience Space examples

Target‑Level Sentiment Analysis

Unlike sentence‑level analysis, target‑level analysis distinguishes sentiment toward specific entities or entity‑aspect pairs. Three sub‑tasks are defined: TG‑ABSA (entity with multiple aspects), TN‑ABSA (entity only), and T‑ABSA (entity‑aspect pairs).

Figure illustrating target‑level analysis
Figure illustrating target‑level analysis

Our Progress (Target‑Level)

We propose a single‑model multi‑attribute output approach, enabling simultaneous prediction of sentiment for multiple aspects. In the automotive domain, the model predicts sentiment for eight attributes (interior, power, appearance, cost‑performance, handling, energy consumption, space, comfort) with confidence‑based filtering.

Figure 15 Attribute‑level sentiment analysis results
Figure 15 Attribute‑level sentiment analysis results
Figure 16 Example of automotive attribute sentiment
Figure 16 Example of automotive attribute sentiment

Summary

This article presented the concept of sentiment analysis, illustrated Huawei Cloud’s research and product progress across word‑level, sentence‑level, and target‑level tasks, and highlighted available services in the “EI Experience Space” mini‑program for practical use.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

natural language processingSentiment AnalysisHuawei Cloudaspect based sentimentlexicon construction
Huawei Cloud Developer Alliance
Written by

Huawei Cloud Developer Alliance

The Huawei Cloud Developer Alliance creates a tech sharing platform for developers and partners, gathering Huawei Cloud product knowledge, event updates, expert talks, and more. Together we continuously innovate to build the cloud foundation of an intelligent world.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.