Hugging Face
Models
Datasets
Spaces
Buckets
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Junyi-Shen
/
Junyi-BERT-sentiment-analysis-SST5
Like
0
Text Classification
SetFit/sst5
English
License:
apache-2.0
Model card
Files
Files and versions
xet
Community
Copy to bucket
Source Code
Task
Base Model
Training Data
Training Method
Evaluation
Comparison
Source Code
https://github.com/shjy2008/BERT
Task
5-class sentiment classification (labels: 0β4)
Base Model
google-bert/bert-base-uncased
(~110M parameters)
Training Data
Stage 1: Large-scale sentiment pre-finetuning
Dataset: 3M-sample sentiment corpus composed of:
Amazon Reviews 2023 (Movies and TV): 2.34M samples
https://amazon-reviews-2023.github.io/
Rotten Tomatoes movies and critic reviews: 634k samples
https://www.kaggle.com/datasets/stefanoleone992/rotten-tomatoes-movies-and-critic-reviews-dataset
SST-5 training set: 8k samples
https://huggingface.co/datasets/SetFit/sst5
Task: 5-class sentiment classification (labels: 0β4)
Stage 2: SST-5 sentiment fine-tuning
Dataset: SST-5 training set (8k samples)
https://huggingface.co/datasets/SetFit/sst5
Task: 5-class sentiment classification (labels: 0β4)
Training Method
Loss function: CORAL (COnsistent RAnk Logits)
https://www.sciencedirect.com/science/article/pii/S016786552030413X
Weight decay: 0.01
Batch size: 32
Dropout: 0.2
Learning rate: 5e-5
Evaluation
Test dataset: SST-5 test set (~2k samples)
https://huggingface.co/datasets/SetFit/sst5
Test accuracy:
59.4%
Comparison
Despite its smaller size, the model achieves competitive performance compared to significantly larger models:
Heinsen Routing + RoBERTa-large (~355M parameters): 59.1%
BERT-large (~340M parameters): 55.5%
Downloads last month
-
Downloads are not tracked for this model.
How to track
Inference Providers
NEW
Text Classification
This model isn't deployed by any Inference Provider.
π
Ask for provider support
Model tree for
Junyi-Shen/Junyi-BERT-sentiment-analysis-SST5
Base model
google-bert/bert-base-uncased
Finetuned
(
7051
)
this model
Dataset used to train
Junyi-Shen/Junyi-BERT-sentiment-analysis-SST5
SetFit/sst5
Viewer
β’
Updated
Dec 25, 2021
β’
11.9k
β’
25.5k
β’
24