File size: 718 Bytes
a72bd87
 
 
 
 
 
42dd33d
 
 
a72bd87
 
 
 
42dd33d
a72bd87
 
 
 
 
42dd33d
a72bd87
42dd33d
 
 
 
 
 
 
 
 
 
 
 
 
a72bd87
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
---
language: en
license: apache-2.0
tags:
  - text-classification
  - sentiment-analysis
base_model: distilbert-base-uncased
datasets:
  - imdb
---

# hf-workshop-sentiment

Binary sentiment classifier (positive/negative) fine-tuned from `distilbert-base-uncased`.

## Usage

```python
from transformers import pipeline

classifier = pipeline("sentiment-analysis", model="marksoulier/hf-workshop-sentiment")
classifier("I loved this film!")
# [{'label': 'POSITIVE', 'score': 0.998}]
```

## Training

Training code, dependencies, and full reproduction steps are on GitHub:
**https://github.com/marksoulier/hf-workshop**

```bash
git clone https://github.com/marksoulier/hf-workshop
cd hf-workshop
uv run train.py
```