Panhapich commited on
Commit
1c44ae9
·
verified ·
1 Parent(s): 29a8618

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +70 -1
README.md CHANGED
@@ -1,3 +1,72 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: other
3
+ language:
4
+ - km
5
+ - en
6
+ task_categories:
7
+ - text-generation
8
+ - fill-mask
9
+ tags:
10
+ - khmer
11
+ - cambodia
12
+ - code-switching
13
+ - sentencepiece
14
+ - diffusion-lm
15
+ pretty_name: Khmer + English Mixed Text Corpus
16
  ---
17
+
18
+ # Khmer + English Mixed Text Corpus
19
+
20
+ A cleaned, deduplicated Khmer text corpus with naturally-occurring **Khmer/English code-switching**
21
+ (English tech & finance terms, Latin script, and digits embedded in Khmer text). It is the training
22
+ data for the [`Panhapich/khmer-sp-8k`](https://huggingface.co/Panhapich/khmer-sp-8k) SentencePiece tokenizer
23
+ and the text-only warm-start of a shared Khmer diffusion decoder.
24
+
25
+ ## Contents
26
+
27
+ | File | Description |
28
+ |---|---|
29
+ | `all_text.txt` | The corpus. One normalized sentence per line, UTF-8. |
30
+ | `metadata.json` | Corpus statistics and provenance. |
31
+
32
+ - **Total sentences:** 1,959,780
33
+
34
+ ## Sources
35
+
36
+ Built from exactly four sources, mixed together and shuffled. A global cap
37
+ (`2,000,000` sentences) bounds the total — small sources and the local file are taken
38
+ in full, and the large raw-text source fills the remainder:
39
+
40
+ | Source | Field | Contribution |
41
+ |---|---|---|
42
+ | `Sokheng/khmer-synthetic-ocr-v1-100k` | `text` | Synthetic OCR receipt/label text (Khmer/English/digit mixed) |
43
+ | `rinabuoy/aupp-assignment-data` | `title` | Khmer news headlines |
44
+ | `nphearum/khmer-raw-text-3M-v2` | `text` | Large raw Khmer text (split on the Khmer full stop `។`) |
45
+ | `khmer_corpus.txt` (local) | line | Pre-chunked ~1000-character Khmer text blocks |
46
+
47
+ **The Khmer/English mixing is entirely organic** — it comes from the real sources. No synthetic
48
+ code-switching is injected.
49
+
50
+ ## Preprocessing
51
+
52
+ Every sentence is normalized: coerce to string, strip, replace newlines/tabs with a single space,
53
+ collapse repeated whitespace, and drop empty/invalid labels (`???`, `NULL`, `N/A`, `UNKNOWN`).
54
+ Khmer word-spacing, punctuation, Khmer + Arabic numerals, and English/Latin tokens are preserved.
55
+
56
+ Hub-source sentences are kept only if 5-400 characters; the local blocks are exempt from the length
57
+ cap. The corpus is deduplicated and shuffled with a fixed seed (42) for reproducibility.
58
+
59
+ ## Intended use
60
+
61
+ Subword tokenizer training for Khmer with code-switched English, text-only diffusion/masked-LM
62
+ pretraining of a Khmer decoder, and general mixed-script Khmer NLP.
63
+
64
+ ## Out of scope / limitations
65
+
66
+ Plain text only (no labels or translations). Includes synthetic OCR text and raw web-scraped text,
67
+ so expect some noise and non-standard spelling. Not filtered for PII beyond the rules above.
68
+
69
+ ## Licensing
70
+
71
+ This corpus is derived from third-party datasets and inherits their licenses. Confirm the terms of
72
+ each source above and set the `license` field accordingly — `other` is a placeholder.