stanfordnlp/imdb
Viewer โข Updated โข 100k โข 271k โข 378
How to use AutoBot000/distilbert-imdb-sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="AutoBot000/distilbert-imdb-sentiment") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("AutoBot000/distilbert-imdb-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("AutoBot000/distilbert-imdb-sentiment")DistilBERT๋ฅผ IMDb ์ํ ๋ฆฌ๋ทฐ ๊ฐ์ ๋ถ์ ๋ฐ์ดํฐ์ ์ผ๋ก fine-tuningํ ๋ชจ๋ธ์ ๋๋ค.
from transformers import pipeline
classifier = pipeline("text-classification", model="AutoBot000/distilbert-imdb-sentiment")
result = classifier("This movie was absolutely fantastic!")
print(result)
Base model
distilbert/distilbert-base-uncased