Downloads · 30 days
10
12% of all-time downloads
aiegoo/pytorch-book
pytorch-book is a text classification model from aiegoo. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
이 모델은 영화 리뷰에 대한 감성 분석(Sentiment Analysis)을 수행합니다. HuggingFace Transformers 라이브러리의 DistilBERT 모델을 기반으로 IMDb 데이터셋에서 학습되었습니다.
Downloads · 30 days
10
12% of all-time downloads
All-time downloads
85
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
이 모델은 영화 리뷰에 대한 감성 분석(Sentiment Analysis)을 수행합니다. HuggingFace Transformers 라이브러리의 DistilBERT 모델을 기반으로 IMDb 데이터셋에서 학습되었습니다.
This model performs sentiment analysis on movie reviews. Based on DistilBERT from HuggingFace Transformers, fine-tuned on the IMDb dataset.
from transformers import pipeline
# 파이프라인 생성
classifier = pipeline("sentiment-analysis", model="aiegoo/pytorch-book")
# 감성 분석 수행
result = classifier("This movie is amazing!")
print(result)
# [{'label': 'POSITIVE', 'score': 0.9998}]
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("aiegoo/pytorch-book")
model = AutoModelForSequenceClassification.from_pretrained("aiegoo/pytorch-book")
# 토큰화 및 예측
inputs = tokenizer("I love this movie!", return_tensors="pt")
outputs = model(**inputs)
distilbert-base-uncased-finetuned-sst-2-english이 모델은 PyTorch Book 학습 과정의 일부로 생성되었습니다:
This model was created as part of the PyTorch Book learning curriculum.
MIT License - 자유롭게 사용 가능합니다.
Created with ❤️ for learning PyTorch and Transformers