andy-value commited on
Commit
1adc642
·
verified ·
1 Parent(s): a414cd9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: mit
4
+ tags:
5
+ - sentiment-analysis
6
+ - distilbert
7
+ datasets:
8
+ - sst-2
9
+ ---
10
+
11
+ # my-sentiment-model
12
+
13
+ 此模型是基于DistilBERT架构的情感分析模型,在SST-2数据集上微调。
14
+
15
+ ## 使用示例
16
+
17
+ ```python
18
+ from transformers import pipeline
19
+
20
+ classifier = pipeline('sentiment-analysis',
21
+ model='andy-value/my-sentiment-model')
22
+ result = classifier("Hugging Face is amazing!")
23
+ print(result) # [{'label': 'POSITIVE', 'score': 0.9998}]
24
+ ```