Zubnet AIAprenderWiki › Sentiment Analysis
Using AI

Sentiment Analysis

Opinion Mining
Determinar automáticamente el tono emocional de un texto — positivo, negativo o neutral. «¡Este producto es increíble!» es positivo. «Servicio al cliente terrible» es negativo. Más allá de la simple polaridad, el análisis de sentimiento avanzado detecta emociones específicas (enojo, alegría, frustración), sentimiento a nivel de aspecto («la comida estaba buena pero el servicio era lento») y sarcasmo.

Por qué importa

El análisis de sentimiento es una de las aplicaciones NLP más desplegadas comercialmente. Las empresas lo usan para monitorear la percepción de marca en redes sociales, analizar reseñas de clientes a escala, medir satisfacción de empleados en encuestas, y detectar crisis de PR emergentes. También es un punto de entrada común para aprender NLP — una tarea de clasificación simple e intuitiva con abundante data de entrenamiento.

Deep Dive

Traditional sentiment analysis used feature-engineered classifiers (bag-of-words + logistic regression, lexicon-based approaches). These worked for simple cases but failed on sarcasm ("Oh great, another delay"), implicit sentiment ("The battery lasted two hours"), and domain-specific language. Modern approaches use fine-tuned BERT or LLM-based classification, which handle these nuances much better by understanding context.

Aspect-Based Sentiment

Real reviews often contain mixed sentiment: "The camera is excellent but the battery is disappointing." Aspect-based sentiment analysis identifies the aspects (camera, battery) and assigns sentiment to each independently. This is more useful for product teams than overall sentiment because it pinpoints what specifically needs improvement. Modern LLMs handle this naturally through structured output — "extract aspects and their sentiments from this review."

LLMs vs. Dedicated Models

For sentiment analysis, you have three options: (1) a fine-tuned small model (fast, cheap, good for high-volume), (2) a zero-shot LLM prompt (flexible, handles edge cases, more expensive), or (3) an API service (Google NLP, AWS Comprehend). For most new projects, starting with an LLM prompt and switching to a fine-tuned model when volume justifies it is the practical approach.

Conceptos relacionados

← Todos los términos
ESC