Update README.md
Browse files
README.md
CHANGED
|
@@ -3,35 +3,60 @@ library_name: transformers
|
|
| 3 |
license: apache-2.0
|
| 4 |
base_model: google-bert/bert-base-cased
|
| 5 |
tags:
|
|
|
|
|
|
|
|
|
|
| 6 |
- generated_from_trainer
|
| 7 |
metrics:
|
| 8 |
- accuracy
|
| 9 |
model-index:
|
| 10 |
-
- name:
|
| 11 |
-
results:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
|
|
|
| 13 |
|
| 14 |
-
|
| 15 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
- Loss: 0.2904
|
| 22 |
-
- Accuracy: 0.928
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
## Intended uses & limitations
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
## Training and evaluation data
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
## Training procedure
|
| 37 |
|
|
@@ -60,4 +85,4 @@ The following hyperparameters were used during training:
|
|
| 60 |
- Transformers 4.57.3
|
| 61 |
- Pytorch 2.9.1+cu128
|
| 62 |
- Datasets 4.4.1
|
| 63 |
-
- Tokenizers 0.22.1
|
|
|
|
| 3 |
license: apache-2.0
|
| 4 |
base_model: google-bert/bert-base-cased
|
| 5 |
tags:
|
| 6 |
+
- sentiment-analysis
|
| 7 |
+
- text-classification
|
| 8 |
+
- imdb
|
| 9 |
- generated_from_trainer
|
| 10 |
metrics:
|
| 11 |
- accuracy
|
| 12 |
model-index:
|
| 13 |
+
- name: BERT IMDB Sentiment Classifier
|
| 14 |
+
results:
|
| 15 |
+
- task:
|
| 16 |
+
type: text-classification
|
| 17 |
+
name: Sentiment Analysis
|
| 18 |
+
dataset:
|
| 19 |
+
name: IMDB
|
| 20 |
+
type: stanfordnlp/imdb
|
| 21 |
+
metrics:
|
| 22 |
+
- type: accuracy
|
| 23 |
+
value: 0.928
|
| 24 |
+
name: Test Accuracy
|
| 25 |
+
|
| 26 |
+
datasets:
|
| 27 |
+
- stanfordnlp/imdb
|
| 28 |
---
|
| 29 |
+
# BERT Fine-tuned on IMDB Reviews
|
| 30 |
|
| 31 |
+
Fine-tuned BERT-base-cased for binary sentiment classification on movie reviews.
|
|
|
|
| 32 |
|
| 33 |
+
This model is a fine-tuned version of [google-bert/bert-base-cased](https://huggingface.co/google-bert/bert-base-cased) on [Stanford IMDB dataset](https://huggingface.co/datasets/stanfordnlp/imdb).
|
| 34 |
|
| 35 |
+
**Test Results:**
|
| 36 |
+
- Accuracy: 92.8%
|
| 37 |
- Loss: 0.2904
|
|
|
|
| 38 |
|
| 39 |
## Model description
|
| 40 |
|
| 41 |
+
This model classifies movie reviews as positive or negative sentiment. Fine-tuned from `google-bert/bert-base-cased` on the IMDB dataset using HuggingFace Trainer.
|
| 42 |
|
| 43 |
## Intended uses & limitations
|
| 44 |
|
| 45 |
+
**Uses:**
|
| 46 |
+
- Sentiment analysis on movie reviews
|
| 47 |
+
- General sentiment classification on similar review-style text
|
| 48 |
+
|
| 49 |
+
**Limitations:**
|
| 50 |
+
- Trained specifically on movie reviews - may not generalize well to other domains
|
| 51 |
+
- Binary classification only (positive/negative)
|
| 52 |
+
- Maximum sequence length: 512 tokens
|
| 53 |
|
| 54 |
## Training and evaluation data
|
| 55 |
|
| 56 |
+
- **Dataset:** [Stanford IMDB](https://huggingface.co/datasets/stanfordnlp/imdb)
|
| 57 |
+
- **Size:** 50,000 reviews total
|
| 58 |
+
- **Split:** 20,000 train / 5,000 validation / 25,000 test
|
| 59 |
+
- **Classes:** Binary (0=Negative, 1=Positive), perfectly balanced
|
| 60 |
|
| 61 |
## Training procedure
|
| 62 |
|
|
|
|
| 85 |
- Transformers 4.57.3
|
| 86 |
- Pytorch 2.9.1+cu128
|
| 87 |
- Datasets 4.4.1
|
| 88 |
+
- Tokenizers 0.22.1
|