File size: 481 Bytes
1adc642
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
language: en
license: mit
tags:
- sentiment-analysis
- distilbert
datasets:
- sst-2
---

# my-sentiment-model

此模型是基于DistilBERT架构的情感分析模型,在SST-2数据集上微调。

## 使用示例

```python
from transformers import pipeline

classifier = pipeline('sentiment-analysis', 
                      model='andy-value/my-sentiment-model')
result = classifier("Hugging Face is amazing!")
print(result)  # [{'label': 'POSITIVE', 'score': 0.9998}]
```