File size: 816 Bytes
2fa3449
1721e5d
 
 
 
 
 
 
 
 
 
 
 
2fa3449
 
1721e5d
2fa3449
1721e5d
2fa3449
1721e5d
 
2fa3449
1721e5d
 
 
 
 
 
2fa3449
1721e5d
2fa3449
1721e5d
2fa3449
1721e5d
2fa3449
1721e5d
2fa3449
1721e5d
2fa3449
1721e5d
 
 
 
2fa3449
1721e5d
2fa3449
1721e5d
2fa3449
1721e5d
 
 
 
2fa3449
1721e5d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
datasets:
- imdb
language: en
license: apache-2.0
metrics:
- accuracy
- f1
pipeline_tag: text-classification
tags:
- sentiment-analysis
- text-classification
- distilbert
---

# sentiment-tutorial

Fine-tuned distilbert-base-uncased for binary sentiment classification.

## Intended Use
Classify English text as positive or negative.

## Training Procedure
- Base model: distilbert-base-uncased
- Epochs: 2
- Learning rate: 2e-5
- Batch size: 32
- Max length: 128

## Evaluation Results

Accuracy: 0.870

Precision: 0.879

Recall: 0.858

F1: 0.868

## Limitations
- Binary classification only
- English only
- Movie reviews domain

## Usage

from transformers import pipeline

classifier = pipeline(
    "sentiment-analysis",
    model="ayesha9f/sentiment-tutorial"
)

classifier("This was a great experience!")