Update README.md
Browse files
README.md
CHANGED
@@ -1,33 +1,38 @@
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model:
|
4 |
+
- uer/gpt2-chinese-cluecorpussmall
|
5 |
+
---
|
6 |
+
# gpt2-chinese-ai-text-classifier
|
7 |
+
|
8 |
+
使用 `uer/gpt2-chinese-cluecorpussmall` 作为基座模型,基于 [Hello-SimpleAI/HC3-Chinese](https://huggingface.co/datasets/Hello-SimpleAI/HC3-Chinese) 数据集训练得到的 AI 文本分类器。
|
9 |
+
|
10 |
+
## 训练数据
|
11 |
+
|
12 |
+
[Hello-SimpleAI/HC3-Chinese](https://huggingface.co/datasets/Hello-SimpleAI/HC3-Chinese)
|
13 |
+
|
14 |
+
## Demo
|
15 |
+
|
16 |
+
- gradio==3.50.0
|
17 |
+
|
18 |
+
- easytokenizer
|
19 |
+
|
20 |
+
- transformers
|
21 |
+
|
22 |
+
安装 [easytokenizer](https://github.com/zejunwang1/easytokenizer):
|
23 |
+
|
24 |
+
```shell
|
25 |
+
pip install git+https://github.com/zejunwang1/easytokenizer
|
26 |
+
```
|
27 |
+
|
28 |
+
启动 demo:
|
29 |
+
|
30 |
+
```shell
|
31 |
+
python gradio_demo.py --model gpt2-chinese-ai-text-classifier/ --port 9000
|
32 |
+
```
|
33 |
+
|
34 |
+
打开 `http://[server_ip]:9000/`,查看效果:
|
35 |
+
|
36 |
+

|
37 |
+
|
38 |
+

|