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

|
32 |
+
|
33 |
+

|