1️⃣Sentiment Analysis

What is Sentiment Analysis?

감성 분석은 주어진 텍스트의 극성을 식별하는 자연어 처리 기법입니다. 감성 분석에는 다양한 종류가 있지만 가장 널리 사용되는 기법 중 하나는 데이터를 긍정, 부정, 중립으로 분류하는 것입니다.

예를 들어 감성 분석은 다양한 애플리케이션에서 사용됩니다:

  • 소셜 미디어 언급을 분석하여 사람들이 내 브랜드와 경쟁사에 대해 어떻게 이야기하는지 파악합니다.

  • 설문조사와 제품 리뷰의 피드백을 분석하여 고객이 제품에 대해 좋아하는 것과 싫어하는 것에 대한 인사이트를 빠르게 얻을 수 있습니다.

  • 실시간으로 수신되는 지원 티켓을 분석하여 불만 고객을 감지하고 그에 따른 조치를 취하여 고객 이탈을 방지하세요.

Hugging Face: Sentiment Analysis

  1. Tokenizer & Model from Huggingface

  2. Pipeline

  3. Inference

  4. Optional: Output Categorized

%pip install transformers
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
/home/kubwa/anaconda3/envs/pytorch/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from .autonotebook import tqdm as notebook_tqdm

Tokenizer & Model

Pipeline

Inference

Output Categorized

  1. Binary Output

  2. Three Category

  3. 5 Stars

Binary Output

Three Category

5 Stars

Last updated