Update README.md
Browse files
README.md
CHANGED
@@ -18,7 +18,76 @@ configs:
|
|
18 |
data_files:
|
19 |
- split: train
|
20 |
path: data/train-*
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
---
|
22 |
# Dataset Card for "firefly-train-chinese-zhtw"
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
data_files:
|
19 |
- split: train
|
20 |
path: data/train-*
|
21 |
+
task_categories:
|
22 |
+
- text-generation
|
23 |
+
language:
|
24 |
+
- zh
|
25 |
+
size_categories:
|
26 |
+
- 1M<n<10M
|
27 |
---
|
28 |
# Dataset Card for "firefly-train-chinese-zhtw"
|
29 |
|
30 |
+
## 資料集摘要
|
31 |
+
|
32 |
+
本資料集主要是應用於專案:[Firefly(流螢): 中文對話式大語言模型](https://github.com/yangjianxin1/Firefly) ,經過訓練後得到的模型 [firefly-1b4](https://huggingface.co/YeungNLP/firefly-bloom-1b4)。
|
33 |
+
|
34 |
+
[Firefly(流螢): 中文對話式大語言模型]專案(https://github.com/yangjianxin1/Firefly)收集了 23 個常見的中文資料集,并且對於每種不同的 NLP 任務,由人工書寫若干種指令模板來保證資料的高品質與豐富度。
|
35 |
+
|
36 |
+
資料量為115萬 。數據分佈如下圖所示:
|
37 |
+
|
38 |
+
![task_distribution](task_distribution.png)
|
39 |
+
|
40 |
+
訓練資料集的 token 長度分佈如下圖所示,絕大部分資料的長度都小於 600:
|
41 |
+
|
42 |
+
![len_distribution.png](len_distribution.png)
|
43 |
+
|
44 |
+
原始資料來源:
|
45 |
+
|
46 |
+
- [YeungNLP/firefly-train-1.1M](https://huggingface.co/datasets/YeungNLP/firefly-train-1.1M)
|
47 |
+
- [Firefly(流萤): 中文对话式大语言模型](https://github.com/yangjianxin1/Firefly)
|
48 |
+
|
49 |
+
## 資料下載清理
|
50 |
+
|
51 |
+
1. 下載 chinese-poetry: 最全中文诗歌古典文集数据库 的 Repo
|
52 |
+
2. 使用 OpenCC 來進行簡繁轉換
|
53 |
+
3. 使用 Huggingface Datasets 來上傳至 Huggingface Hub
|
54 |
+
|
55 |
+
## 資料集結構
|
56 |
+
|
57 |
+
```json
|
58 |
+
{
|
59 |
+
"kind": "ClassicalChinese",
|
60 |
+
"input": "將下面句子翻譯成現代文:\n石中央又生一樹,高百餘尺,條幹偃陰為五色,翠葉如盤,花徑尺餘,色深碧,蕊深紅,異香成煙,著物霏霏。",
|
61 |
+
"target": "大石的中央長著一棵樹,一百多尺高,枝幹是彩色的,樹葉有盤子那樣大,花的直徑有一尺寬,花瓣深藍色,花中飄出奇異的香氣籠罩著周圍,如煙似霧。"
|
62 |
+
}
|
63 |
+
```
|
64 |
+
|
65 |
+
## 資料欄位
|
66 |
+
|
67 |
+
- `kind`: (string) 任務類別
|
68 |
+
- `input`: (string) 任務輸入
|
69 |
+
- `target`: (string) 任務輸入目標
|
70 |
+
|
71 |
+
## 如何使用
|
72 |
+
|
73 |
+
```python
|
74 |
+
from datasets import load_dataset
|
75 |
+
|
76 |
+
dataset = load_dataset("erhwenkuo/firefly-train-chinese-zhtw", split="train")
|
77 |
+
```
|
78 |
+
## 許可資訊
|
79 |
+
|
80 |
+
資料來源未定義許可資訊
|
81 |
+
|
82 |
+
## 引用
|
83 |
+
|
84 |
+
```
|
85 |
+
@misc{Firefly,
|
86 |
+
author = {Jianxin Yang},
|
87 |
+
title = {Firefly(流萤): 中文对话式大语言模型},
|
88 |
+
year = {2023},
|
89 |
+
publisher = {GitHub},
|
90 |
+
journal = {GitHub repository},
|
91 |
+
howpublished = {\url{https://github.com/yangjianxin1/Firefly}},
|
92 |
+
}
|
93 |
+
```
|