Walter commited on
Commit ·
5711cea
1
Parent(s): 2adda04
initial commit
Browse files- .gitattributes +1 -0
- README.md +131 -3
- appledaily_article_dedup.csv +3 -0
- hkcitizenmedia_article_dedup.csv +3 -0
- hkcnews_article_dedup.csv +3 -0
- inmedia_article_dedup.csv +3 -0
- lihkg_posts_dedup_demoji_128.csv +3 -0
- openrice_review_dedup_demoji.csv +3 -0
- thestandnews_article_dedup.csv +3 -0
- wiki_hk.csv +3 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,131 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
dataset_info:
|
| 3 |
+
features:
|
| 4 |
+
- name: text
|
| 5 |
+
dtype: string
|
| 6 |
+
tags:
|
| 7 |
+
- corpus
|
| 8 |
+
- Hong Kong
|
| 9 |
+
- diglossia
|
| 10 |
+
- Cantonese
|
| 11 |
+
- Traditional Chinese
|
| 12 |
+
language:
|
| 13 |
+
- yue
|
| 14 |
+
- zh
|
| 15 |
+
language_details: "yue-Hant-HK; zh-Hant-HK"
|
| 16 |
+
language_creators:
|
| 17 |
+
- found
|
| 18 |
+
annotations_creators:
|
| 19 |
+
- no-annotation
|
| 20 |
+
source_datasets:
|
| 21 |
+
- LIHKG forum posts
|
| 22 |
+
- OpenRice user reviews
|
| 23 |
+
- Apple Daily news articles
|
| 24 |
+
- Hong Kong Citizen Media
|
| 25 |
+
- Citizen News
|
| 26 |
+
- Stand News
|
| 27 |
+
- Hong Kong Inmedia
|
| 28 |
+
- Wikipedia (zh-HK)
|
| 29 |
+
|
| 30 |
+
configs:
|
| 31 |
+
- config_name: appledaily
|
| 32 |
+
data_files: "appledaily_article_dedup.csv"
|
| 33 |
+
sep: "\n\n"
|
| 34 |
+
- config_name: hkcitizenmedia
|
| 35 |
+
data_files: "hkcitizenmedia_article_dedup.csv"
|
| 36 |
+
sep: "\n\n"
|
| 37 |
+
- config_name: hkcnews
|
| 38 |
+
data_files: "hkcnews_article_dedup.csv"
|
| 39 |
+
sep: "\n\n"
|
| 40 |
+
- config_name: inmediahk
|
| 41 |
+
data_files: "inmedia_article_dedup.csv"
|
| 42 |
+
sep: "\n\n"
|
| 43 |
+
- config_name: lihkg
|
| 44 |
+
data_files: "lihkg_posts_dedup_demoji_128.csv"
|
| 45 |
+
sep: "\n\n"
|
| 46 |
+
- config_name: openrice
|
| 47 |
+
data_files: "openrice_review_dedup_demoji.csv"
|
| 48 |
+
sep: "\n\n"
|
| 49 |
+
- config_name: standnews
|
| 50 |
+
data_files: "thestandnews_article_dedup.csv"
|
| 51 |
+
sep: "\n\n"
|
| 52 |
+
- config_name: wiki_hk
|
| 53 |
+
data_files: "wiki_hk.csv"
|
| 54 |
+
sep: "\n\n"
|
| 55 |
+
license: cc-by-4.0
|
| 56 |
+
pretty_name: HK Content Corpus (Cantonese \& Traditional Chinese)
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
# HK Content Corpus (Cantonese \& Traditional Chinese)
|
| 60 |
+
|
| 61 |
+
## Dataset Description
|
| 62 |
+
|
| 63 |
+
- **Language:** Hong Kong Cantonese, Traditional Chinese
|
| 64 |
+
- **Size:** 9.44GB
|
| 65 |
+
- **Source:** public web sources (news sites, online forums, encyclopedia and restaurant reviews).
|
| 66 |
+
|
| 67 |
+
This dataset contains eight cleaned source-specific corpora of **Hong Kong Cantonese** and **Traditional Chinese** text, crawled from public websites and platforms.
|
| 68 |
+
|
| 69 |
+
It was initially created for the experiments reported in **https://doi.org/10.1145/3744341** which study the **effect of diglossia on Hong Kong language** modeling.
|
| 70 |
+
|
| 71 |
+
Each file stores plain UTF-8 text, where **each record occupies one line**, and **blank lines serve as separators**.
|
| 72 |
+
|
| 73 |
+
This dataset is also available at Zenodo: **https://doi.org/10.5281/zenodo.16882351**
|
| 74 |
+
|
| 75 |
+
We only change file extension from .corpus to .csv and add header row here for HuggingFace's dataset viewer function
|
| 76 |
+
|
| 77 |
+
👉 This cleaned corpus is derived from a larger MySQL database used to store raw text during the data collection stage.
|
| 78 |
+
If you need the original database for reprocessing or reproduction, please refer to:
|
| 79 |
+
https://huggingface.co/datasets/IKMLab-team/hk_content_corpus_mysql
|
| 80 |
+
|
| 81 |
+
### Files
|
| 82 |
+
|
| 83 |
+
| Filename | Description | SHA256 hash (without header row, same content as corpus file@Zenodo) |
|
| 84 |
+
|----------------------------------------|------------------------------------|----------------------------------------------------------------------|
|
| 85 |
+
| `appledaily_article_dedup.csv` | Apple Daily news articles | `0b6ad22b7a73230fd0e44af904c0cff1773cc871417f6ad3af11a783564bca15` |
|
| 86 |
+
| `hkcitizenmedia_article_dedup.csv` | HK Citizen Media articles | `373a5b369d5e402e58760861e2bff2e618e7ee7fd4494988a39be1156f9dba84` |
|
| 87 |
+
| `hkcnews_article_dedup.csv` | Hong Kong Citizen News | `67f909cfaf7d7a67df1dc79448f24622ec525a31b73b2e3293fbaad147470e69` |
|
| 88 |
+
| `inmedia_article_dedup.csv` | InMedia.hk articles | `135251f3e8ba7587018b7b2814b9ea5bbebf69c98adca73d3ea4c9f9b5571957` |
|
| 89 |
+
| `lihkg_posts_dedup_demoji_128.csv` | Lihkg forum posts (emoji removed) | `8e5e6de9c219aeccdaf13e9162b00cce2eeb7f595023a7bf19d4b5660395a3ee` |
|
| 90 |
+
| `openrice_review_dedup_demoji.csv` | OpenRice user reviews | `dd5835a7effe49bb96a31e0c0eab43dea17ef23b3e1d9cefdc186aca276897ce` |
|
| 91 |
+
| `thestandnews_article_dedup.csv` | Stand News articles | `847ef0f5809481caf4bf21100e4b34207513d724dafb9f42b162ef49079e7dba` |
|
| 92 |
+
| `wiki_hk.csv` | Wikipedia (zh-hk) | `bd33008802797b33df8484cf1113be6a0b38547fe13515f5c4edbf4ccad270db` |
|
| 93 |
+
|
| 94 |
+
## Intended Uses
|
| 95 |
+
|
| 96 |
+
- Language model pretraining and finetuning
|
| 97 |
+
- Hong Kong Cantonese/Traditional Chinese linguistic modeling
|
| 98 |
+
- Downstream tasks such as classification or generation
|
| 99 |
+
|
| 100 |
+
NOTE: HKNSL became effective since 2020-6-30, which can create bias on user content created afterwards. Those portion of data should be used with caution.
|
| 101 |
+
|
| 102 |
+
## Citation
|
| 103 |
+
If you use this dataset, please cite the following paper:
|
| 104 |
+
|
| 105 |
+
```bibtex
|
| 106 |
+
@article{Yung2025HKDiglossia,
|
| 107 |
+
author = {Yung, Yiu Cheong and Lin, Ying-Jia and Kao, Hung-Yu},
|
| 108 |
+
title = {Exploring the Effectiveness of Pre-training Language Models with Incorporation of Diglossia for Hong Kong Content},
|
| 109 |
+
journal = {ACM Transactions on Asian and Low-Resource Language Information Processing (TALLIP)},
|
| 110 |
+
volume = {24},
|
| 111 |
+
number = {7},
|
| 112 |
+
pages = {71:1--71:16},
|
| 113 |
+
year = {2025},
|
| 114 |
+
publisher = {Association for Computing Machinery},
|
| 115 |
+
doi = {10.1145/3744341}
|
| 116 |
+
}
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
and optionally also cite the dataset DOI:
|
| 120 |
+
|
| 121 |
+
```bibtex
|
| 122 |
+
@dataset{yung_2025_16882351,
|
| 123 |
+
author = {Yung, Yiu Cheong},
|
| 124 |
+
title = {HK Content Corpus (Cantonese \& Traditional Chinese)},
|
| 125 |
+
month = aug,
|
| 126 |
+
year = 2025,
|
| 127 |
+
publisher = {Zenodo},
|
| 128 |
+
doi = {10.5281/zenodo.16882351},
|
| 129 |
+
url = {https://doi.org/10.5281/zenodo.16882351},
|
| 130 |
+
}
|
| 131 |
+
```
|
appledaily_article_dedup.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a68e7a1974d7550d339d42a408f5c02fbc50992cfddd5ec1ac6475b33ea9daf
|
| 3 |
+
size 3143931893
|
hkcitizenmedia_article_dedup.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db04844ec0123bcc5776df934aea176528be900a2537ebb110acfa0b3633a8e7
|
| 3 |
+
size 1957073
|
hkcnews_article_dedup.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:645f3c378030daba59cbc3e63a2828c0294c05476b9f46040f5a6afce94b220b
|
| 3 |
+
size 81680242
|
inmedia_article_dedup.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3afea6464b23fc450a901e42cfe87bb36243675ddaf44884ddb1504f5cd895d2
|
| 3 |
+
size 340775114
|
lihkg_posts_dedup_demoji_128.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0ff5904de4bbdf6c82c34af1c5714be2668b5014da1d99c661e230250509b3f
|
| 3 |
+
size 3131803516
|
openrice_review_dedup_demoji.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93cc19ef81bb65394a45eaa554daf5e3ee498e588c2a70825c52945374d0ad2e
|
| 3 |
+
size 1572247640
|
thestandnews_article_dedup.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90754f6e35400ddc66b2e28264fbd970c74acf07804a7d8b5bef263c5691ed6b
|
| 3 |
+
size 220252268
|
wiki_hk.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18939e192259ecfe649514fbd70869eb0d6b043894bd48eb211b5229ac1d1c14
|
| 3 |
+
size 1653596558
|