sentiment analysis fine tuned model
Overview
Highlights
- Optimized for low-latency sentiment classification tasks
- Apache-2.0 license ensures flexible commercial deployment
- Reduced compute overhead compared to general LLMs
- Ideal for real-time feedback and monitoring pipelines
Usage
# Install Hugging Face transformers
pip install transformers torch
# Load model with transformers
from transformers import AutoModel, AutoTokenizer
model = AutoModel.from_pretrained("alsgyu/sentiment-analysis-fine-tuned-model")
tokenizer = AutoTokenizer.from_pretrained("alsgyu/sentiment-analysis-fine-tuned-model")
Hugging Face Download
We recommend downloading the model via the Hugging Face CLI or Hub SDK.
Guidance:Before downloading, install huggingface_hub with:
pip install -U huggingface_hub
CLI Download
Download the full repository
huggingface-cli download alsgyu/sentiment-analysis-fine-tuned-model
Download a single file to a local folder (e.g. config.json into ./dir)
huggingface-cli download alsgyu/sentiment-analysis-fine-tuned-model config.json --local-dir ./dir
See the official docs for more CLI options
SDK Download
# 模型下载
from huggingface_hub import snapshot_download
model_dir = snapshot_download('alsgyu/sentiment-analysis-fine-tuned-model')
Git Download
Make sure git-lfs is installed first
git lfs install
git clone https://huggingface.co/alsgyu/sentiment-analysis-fine-tuned-model
To skip LFS large-file downloads, use:
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/alsgyu/sentiment-analysis-fine-tuned-model
Model files are hosted on the Hugging Face Hub — download directly via HF CLI / SDK / Git, not through this site.
PyTorch / Transformers Usage
Install Transformers
pip install -U transformers torch
Load the model and run inference
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained('alsgyu/sentiment-analysis-fine-tuned-model')
tokenizer = AutoTokenizer.from_pretrained('alsgyu/sentiment-analysis-fine-tuned-model')
Full Documentation
한국어 감정 분석 모델 (Sentiment Analysis Fine-tuned on Korean Dataset)
모델 개요
이 모델은 AI 허브 한국어 감정 데이터셋을 활용하여 Hugging Face의 beomi/KcBERT-base 모델을 파인튜닝한 감정 분석 모델입니다. 한국어 텍스트의 감정을 긍정, 부정, 중립 등으로 분류할 수 있도록 설계되었습니다. 이 모델은 고객 리뷰 분석, 소셜 미디어 모니터링, 감정적 맥락 이해 등 다양한 한국어 기반 응용 프로그램에서 활용할 수 있습니다.데이터셋 정보
이 모델은 AI 허브 한국어 감정 데이터셋을 기반으로 학습되었습니다. 이 데이터셋은 다양한 상황에서 감정을 나타내는 한국어 텍스트를 포함하고 있으며, 레이블이 사전에 정의되어 있습니다.데이터셋 출처: AI 허브 한국어 감정 데이터셋</br>
데이터 구성: 긍정, 부정, 중립 등의 감정 레이블을 가진 다양한 한국어 텍스트.</br>
전처리 과정: 텍스트 정규화와 레이블 인코딩을 통해 모델 학습에 적합한 형태로 데이터를 준비했습니다.
모델 세부 정보
기반 모델: beomi/KcBERT-base</br>
프레임워크: Hugging Face Transformers</br>
학습 목표: 한국어 텍스트 감정 분석</br>
파인튜닝: AI 허브 데이터셋을 기반으로 모델을 최적화하여 감정 분석 성능을 향상시켰습니다.
예제 입력
모델의 파인튜닝 과정은 Jupyter Notebook을 활용하여 수행되었습니다. 관련 코드는 아래 GitHub 링크에서 확인할 수 있습니다. </br>
GitHub: https://github.com/alsgyu/finetunning_huggingface