Downloads · 30 days
14
38% of all-time downloads
FlySharker/distilbert-rotten-tomatoes
distilbert-rotten-tomatoes is a text classification model from FlySharker. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
14
38% of all-time downloads
All-time downloads
37
Public
Parameters
67M
536 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README

This repository contains a fine-tuned version of DistilBERT optimized for sentiment classification.
The model was trained on the Rotten Tomatoes dataset, which consists of 10,662 movie snippets from the Rotten Tomatoes editorial staff. The goal is to determine whether a given review snippet is "Fresh" (positive) or "Rotten" (negative).
from transformers import pipeline
classifier = pipeline("text-classification", model="你的用户名/你的模型名")
result = classifier("This movie was an absolute masterpiece with stunning visuals!")
print(result)
# Output: [{'label': 'POSITIVE', 'score': 0.999}]