huiqian commited on
Commit
c91ae9b
·
verified ·
1 Parent(s): 846dc7c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md CHANGED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - pytorch
5
+ - text-classification
6
+ - sentiment-analysis
7
+ - chinese
8
+ ---
9
+
10
+ # Tiny Sentiment Classifier
11
+
12
+ 一个非常小的 Transformer 模型,用于中文情感二分类(正面/负面)。
13
+
14
+ ## 使用方式
15
+
16
+ ```python
17
+ from transformers import pipeline
18
+
19
+ classifier = pipeline("text-classification", model="你的用户名/tiny-sentiment-classifier")
20
+
21
+ text = "这家店的东西真不错"
22
+ result = classifier(text)
23
+ print(result)