Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
parquet
Languages:
Chinese
Size:
10K - 100K
License:
Update data processing info
Browse files
README.md
CHANGED
@@ -56,6 +56,14 @@ size_categories:
|
|
56 |
- https://hfl-rc.github.io/cmrc2018/
|
57 |
- https://github.com/ymcui/cmrc2018
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
## 資料集結構
|
60 |
|
61 |
範例如下:
|
@@ -133,4 +141,8 @@ CC BY-SA 4.0
|
|
133 |
doi = "10.18653/v1/D19-1600",
|
134 |
pages = "5886--5891",
|
135 |
}
|
136 |
-
```
|
|
|
|
|
|
|
|
|
|
56 |
- https://hfl-rc.github.io/cmrc2018/
|
57 |
- https://github.com/ymcui/cmrc2018
|
58 |
|
59 |
+
## 資料下載清理
|
60 |
+
|
61 |
+
1. 下載 [cmrc2018](https://huggingface.co/datasets/cmrc2018) 資料集
|
62 |
+
2. 使用 [OpenCC](https://github.com/yichen0831/opencc-python) 來進行簡繁轉換
|
63 |
+
3. 使用 Python 正規表示式來清理一些殘留在 `context`, `question`, `answer` 的不必要字元
|
64 |
+
4. 根據 `answers.text` 來重新計算 `answers.answer_start` 的字元位置
|
65 |
+
5. 使用 Huggingface Datasets 來上傳至 Huggingface Hub
|
66 |
+
|
67 |
## 資料集結構
|
68 |
|
69 |
範例如下:
|
|
|
141 |
doi = "10.18653/v1/D19-1600",
|
142 |
pages = "5886--5891",
|
143 |
}
|
144 |
+
```
|
145 |
+
|
146 |
+
|
147 |
+
|
148 |
+
|