Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
39
1k
text
stringlengths
1
25
tier
stringclasses
3 values
role
stringclasses
4 values
source
stringclasses
4 values
difficulty
stringclasses
4 values
font
stringclasses
33 values
font_family
stringclasses
17 values
font_license
stringclasses
1 value
plane
stringclasses
4 values
corpus_freq
int64
0
14.4k
⌀
charset_source
stringclasses
10 values
minimal_pair_with
stringclasses
16 values
jyutping
stringclasses
420 values
canto_chars
stringclasses
444 values
n_chars
int64
1
25
ink_ratio
float64
0.01
0.95
contrast
float64
width
int64
39
1k
height
int64
48
48
file
stringlengths
15
19
㓎
char
cantonese
charset
medium
ChironSungHK-N
ChironSungHK-N
OFL-1.1
ExtA
3
diff
1
0.1218
null
72
48
char_000000.jpg
㓎
char
cantonese
charset
medium
ChironSungHK-L
ChironSungHK-L
OFL-1.1
ExtA
3
diff
1
0.2447
null
75
48
char_000001.jpg
㓎
char
cantonese
charset
medium
ChironHeiHK-L
ChironHeiHK-L
OFL-1.1
ExtA
3
diff
1
0.0939
null
57
48
char_000002.jpg
㓎
char
cantonese
charset
clean
hkcs-traditional-bmp-canonicalonly
hkcs-traditional-bmp-canonicalonly
OFL-1.1
ExtA
3
diff
1
0.1257
null
60
48
char_000003.jpg
㓎
char
cantonese
charset
medium
ChironSungHK-H
ChironSungHK-H
OFL-1.1
ExtA
3
diff
1
0.7051
null
52
48
char_000004.jpg
㓎
char
cantonese
charset
light
ChironHeiHK-B
ChironHeiHK-B
OFL-1.1
ExtA
3
diff
1
0.4803
null
54
48
char_000005.jpg
㓎
char
cantonese
charset
clean
ChironSungHK-EL
ChironSungHK-EL
OFL-1.1
ExtA
3
diff
1
0.1178
null
46
48
char_000006.jpg
㗎
char
cantonese
charset
clean
NotoSansTC-VF@900
NotoSansTC-VF
OFL-1.1
ExtA
57
diff+core+ext
1
0.4183
null
77
48
char_000007.jpg
㗎
char
cantonese
charset
light
ChironSungHK-B
ChironSungHK-B
OFL-1.1
ExtA
57
diff+core+ext
1
0.1579
null
52
48
char_000008.jpg
㗎
char
cantonese
charset
light
hkcs-traditional-bmp-canonicalonly
hkcs-traditional-bmp-canonicalonly
OFL-1.1
ExtA
57
diff+core+ext
1
0.2018
null
76
48
char_000009.jpg
㗎
char
cantonese
charset
light
NotoSansHK-VF@700
NotoSansHK-VF
OFL-1.1
ExtA
57
diff+core+ext
1
0.5257
null
60
48
char_000010.jpg
㗎
char
cantonese
charset
medium
ChironHeiHK-B
ChironHeiHK-B
OFL-1.1
ExtA
57
diff+core+ext
1
0.4471
null
61
48
char_000011.jpg
㗎
char
cantonese
charset
medium
ChironSungHK-N
ChironSungHK-N
OFL-1.1
ExtA
57
diff+core+ext
1
0.0974
null
65
48
char_000012.jpg
㗎
char
cantonese
charset
light
ChironHeiHK-L
ChironHeiHK-L
OFL-1.1
ExtA
57
diff+core+ext
1
0.225
null
90
48
char_000013.jpg
㗳
char
cantonese
charset
hard
ChironHeiHK-H
ChironHeiHK-H
OFL-1.1
ExtA
5
diff
1
0.3677
null
54
48
char_000014.jpg
㗳
char
cantonese
charset
light
ChironSungHK-M
ChironSungHK-M
OFL-1.1
ExtA
5
diff
1
0.315
null
68
48
char_000015.jpg
㗳
char
cantonese
charset
clean
ChironHeiHK-EL
ChironHeiHK-EL
OFL-1.1
ExtA
5
diff
1
0.1103
null
51
48
char_000016.jpg
㗳
char
cantonese
charset
clean
NotoSerifTC-VF@700
NotoSerifTC-VF
OFL-1.1
ExtA
5
diff
1
0.2526
null
87
48
char_000017.jpg
㗳
char
cantonese
charset
hard
ChironSungHK-B
ChironSungHK-B
OFL-1.1
ExtA
5
diff
1
0.1772
null
71
48
char_000018.jpg
㗳
char
cantonese
charset
light
ChironSungHK-L
ChironSungHK-L
OFL-1.1
ExtA
5
diff
1
0.065
null
50
48
char_000019.jpg
㗳
char
cantonese
charset
hard
NotoSerifHK-VF@900
NotoSerifHK-VF
OFL-1.1
ExtA
5
diff
1
0.5642
null
61
48
char_000020.jpg
䟴
char
cantonese
charset
light
ChironHeiHK-H
ChironHeiHK-H
OFL-1.1
ExtA
3
diff
1
0.3913
null
55
48
char_000021.jpg
䟴
char
cantonese
charset
medium
ChironSungHK-B
ChironSungHK-B
OFL-1.1
ExtA
3
diff
1
0.6565
null
47
48
char_000022.jpg
䟴
char
cantonese
charset
light
ChironSungHK-EL
ChironSungHK-EL
OFL-1.1
ExtA
3
diff
1
0.334
null
59
48
char_000023.jpg
䟴
char
cantonese
charset
light
ChironSungHK-L
ChironSungHK-L
OFL-1.1
ExtA
3
diff
1
0.153
null
61
48
char_000024.jpg
䟴
char
cantonese
charset
medium
ChironSungHK-M
ChironSungHK-M
OFL-1.1
ExtA
3
diff
1
0.2622
null
53
48
char_000025.jpg
䟴
char
cantonese
charset
hard
ChironHeiHK-M
ChironHeiHK-M
OFL-1.1
ExtA
3
diff
1
0.4145
null
67
48
char_000026.jpg
䟴
char
cantonese
charset
medium
ChironHeiHK-EL
ChironHeiHK-EL
OFL-1.1
ExtA
3
diff
1
0.0285
null
54
48
char_000027.jpg
乜
char
cantonese
charset
medium
ChironHeiHK-M
ChironHeiHK-M
OFL-1.1
BMP
671
core+pair
什
1
0.1515
null
59
48
char_000028.jpg
乜
char
cantonese
charset
hard
ChironHeiHK-B
ChironHeiHK-B
OFL-1.1
BMP
671
core+pair
什
1
0.4457
null
56
48
char_000029.jpg
乜
char
cantonese
charset
light
NotoSansHK-VF@500
NotoSansHK-VF
OFL-1.1
BMP
671
core+pair
什
1
0.1487
null
51
48
char_000030.jpg
乜
char
cantonese
charset
medium
ChironHeiHK-EL
ChironHeiHK-EL
OFL-1.1
BMP
671
core+pair
什
1
0.1499
null
57
48
char_000031.jpg
乜
char
cantonese
charset
hard
ChironHeiHK-H
ChironHeiHK-H
OFL-1.1
BMP
671
core+pair
什
1
0.3393
null
56
48
char_000032.jpg
乜
char
cantonese
charset
light
ChironSungHK-H
ChironSungHK-H
OFL-1.1
BMP
671
core+pair
什
1
0.2195
null
69
48
char_000033.jpg
乜
char
cantonese
charset
medium
NotoSerifTC-VF@700
NotoSerifTC-VF
OFL-1.1
BMP
671
core+pair
什
1
0.1796
null
82
48
char_000034.jpg
乸
char
cantonese
charset
light
hkcs-traditional-bmp-canonicalonly
hkcs-traditional-bmp-canonicalonly
OFL-1.1
BMP
21
core
1
0.3989
null
48
48
char_000035.jpg
乸
char
cantonese
charset
light
ChironSungHK-M
ChironSungHK-M
OFL-1.1
BMP
21
core
1
0.2274
null
60
48
char_000036.jpg
乸
char
cantonese
charset
light
ChironHeiHK-H
ChironHeiHK-H
OFL-1.1
BMP
21
core
1
0.7708
null
51
48
char_000037.jpg
乸
char
cantonese
charset
light
ChironSungHK-EL
ChironSungHK-EL
OFL-1.1
BMP
21
core
1
0.5188
null
60
48
char_000038.jpg
乸
char
cantonese
charset
clean
ChironHeiHK-N
ChironHeiHK-N
OFL-1.1
BMP
21
core
1
0.159
null
65
48
char_000039.jpg
乸
char
cantonese
charset
clean
NotoSerifHK-VF@300
NotoSerifHK-VF
OFL-1.1
BMP
21
core
1
0.1559
null
58
48
char_000040.jpg
乸
char
cantonese
charset
clean
NotoSansHK-VF@300
NotoSansHK-VF
OFL-1.1
BMP
21
core
1
0.2241
null
62
48
char_000041.jpg
仔
char
cantonese
charset
light
ChironHeiHK-N
ChironHeiHK-N
OFL-1.1
BMP
426
core
1
0.3576
null
54
48
char_000042.jpg
仔
char
cantonese
charset
medium
ChironSungHK-L
ChironSungHK-L
OFL-1.1
BMP
426
core
1
0.1895
null
73
48
char_000043.jpg
仔
char
cantonese
charset
medium
ChironHeiHK-EL
ChironHeiHK-EL
OFL-1.1
BMP
426
core
1
0.1135
null
67
48
char_000044.jpg
仔
char
cantonese
charset
medium
ChironHeiHK-M
ChironHeiHK-M
OFL-1.1
BMP
426
core
1
0.228
null
73
48
char_000045.jpg
仔
char
cantonese
charset
clean
NotoSansHK-VF@900
NotoSansHK-VF
OFL-1.1
BMP
426
core
1
0.5801
null
65
48
char_000046.jpg
仔
char
cantonese
charset
light
ChironSungHK-EL
ChironSungHK-EL
OFL-1.1
BMP
426
core
1
0.0471
null
69
48
char_000047.jpg
仔
char
cantonese
charset
light
ChironSungHK-H
ChironSungHK-H
OFL-1.1
BMP
426
core
1
0.1973
null
47
48
char_000048.jpg
佢
char
cantonese
charset
clean
ChironSungHK-L
ChironSungHK-L
OFL-1.1
BMP
3,677
diff+core+pair
但
1
0.2002
null
85
48
char_000049.jpg
佢
char
cantonese
charset
light
ChironHeiHK-N
ChironHeiHK-N
OFL-1.1
BMP
3,677
diff+core+pair
但
1
0.3103
null
65
48
char_000050.jpg
佢
char
cantonese
charset
clean
ChironSungHK-B
ChironSungHK-B
OFL-1.1
BMP
3,677
diff+core+pair
但
1
0.2921
null
51
48
char_000051.jpg
佢
char
cantonese
charset
hard
ChironHeiHK-EL
ChironHeiHK-EL
OFL-1.1
BMP
3,677
diff+core+pair
但
1
0.0952
null
58
48
char_000052.jpg
佢
char
cantonese
charset
light
hkcs-traditional-bmp-canonicalonly
hkcs-traditional-bmp-canonicalonly
OFL-1.1
BMP
3,677
diff+core+pair
但
1
0.0886
null
83
48
char_000053.jpg
佢
char
cantonese
charset
light
ChironHeiHK-L
ChironHeiHK-L
OFL-1.1
BMP
3,677
diff+core+pair
但
1
0.0722
null
56
48
char_000054.jpg
佢
char
cantonese
charset
clean
ChironSungHK-EL
ChironSungHK-EL
OFL-1.1
BMP
3,677
diff+core+pair
但
1
0.1387
null
61
48
char_000055.jpg
佬
char
cantonese
charset
clean
ChironHeiHK-H
ChironHeiHK-H
OFL-1.1
BMP
87
core
1
0.4236
null
48
48
char_000056.jpg
佬
char
cantonese
charset
light
ChironHeiHK-M
ChironHeiHK-M
OFL-1.1
BMP
87
core
1
0.3714
null
70
48
char_000057.jpg
佬
char
cantonese
charset
light
ChironHeiHK-N
ChironHeiHK-N
OFL-1.1
BMP
87
core
1
0.3403
null
78
48
char_000058.jpg
佬
char
cantonese
charset
light
ChironSungHK-M
ChironSungHK-M
OFL-1.1
BMP
87
core
1
0.2517
null
48
48
char_000059.jpg
佬
char
cantonese
charset
light
NotoSansTC-VF@700
NotoSansTC-VF
OFL-1.1
BMP
87
core
1
0.3093
null
46
48
char_000060.jpg
佬
char
cantonese
charset
clean
ChironHeiHK-EL
ChironHeiHK-EL
OFL-1.1
BMP
87
core
1
0.1294
null
80
48
char_000061.jpg
佬
char
cantonese
charset
clean
ChironHeiHK-B
ChironHeiHK-B
OFL-1.1
BMP
87
core
1
0.3566
null
76
48
char_000062.jpg
係
char
cantonese
charset
clean
ChironHeiHK-H
ChironHeiHK-H
OFL-1.1
BMP
14,418
core+pair
系
1
0.7001
null
48
48
char_000063.jpg
係
char
cantonese
charset
light
NotoSerifTC-VF@700
NotoSerifTC-VF
OFL-1.1
BMP
14,418
core+pair
系
1
0.4576
null
81
48
char_000064.jpg
係
char
cantonese
charset
light
hkcs-traditional-bmp-canonicalonly
hkcs-traditional-bmp-canonicalonly
OFL-1.1
BMP
14,418
core+pair
系
1
0.1897
null
56
48
char_000065.jpg
係
char
cantonese
charset
clean
ChironHeiHK-EL
ChironHeiHK-EL
OFL-1.1
BMP
14,418
core+pair
系
1
0.1062
null
70
48
char_000066.jpg
係
char
cantonese
charset
medium
ChironHeiHK-B
ChironHeiHK-B
OFL-1.1
BMP
14,418
core+pair
系
1
0.5049
null
51
48
char_000067.jpg
係
char
cantonese
charset
light
ChironSungHK-N
ChironSungHK-N
OFL-1.1
BMP
14,418
core+pair
系
1
0.2792
null
92
48
char_000068.jpg
係
char
cantonese
charset
clean
ChironSungHK-H
ChironSungHK-H
OFL-1.1
BMP
14,418
core+pair
系
1
0.3312
null
50
48
char_000069.jpg
冇
char
cantonese
charset
clean
hkcs-traditional-bmp-canonicalonly
hkcs-traditional-bmp-canonicalonly
OFL-1.1
BMP
966
diff+core+pair
有
1
0.0679
null
62
48
char_000070.jpg
冇
char
cantonese
charset
medium
NotoSerifTC-VF@400
NotoSerifTC-VF
OFL-1.1
BMP
966
diff+core+pair
有
1
0.4053
null
44
48
char_000071.jpg
冇
char
cantonese
charset
medium
ChironHeiHK-B
ChironHeiHK-B
OFL-1.1
BMP
966
diff+core+pair
有
1
0.2445
null
64
48
char_000072.jpg
冇
char
cantonese
charset
clean
ChironSungHK-B
ChironSungHK-B
OFL-1.1
BMP
966
diff+core+pair
有
1
0.1594
null
75
48
char_000073.jpg
冇
char
cantonese
charset
medium
ChironSungHK-N
ChironSungHK-N
OFL-1.1
BMP
966
diff+core+pair
有
1
0.0884
null
49
48
char_000074.jpg
冇
char
cantonese
charset
light
ChironHeiHK-EL
ChironHeiHK-EL
OFL-1.1
BMP
966
diff+core+pair
有
1
0.0451
null
67
48
char_000075.jpg
冇
char
cantonese
charset
clean
ChironSungHK-M
ChironSungHK-M
OFL-1.1
BMP
966
diff+core+pair
有
1
0.217
null
55
48
char_000076.jpg
冚
char
cantonese
charset
light
ChironSungHK-L
ChironSungHK-L
OFL-1.1
BMP
22
diff+core
1
0.162
null
67
48
char_000077.jpg
冚
char
cantonese
charset
medium
ChironHeiHK-N
ChironHeiHK-N
OFL-1.1
BMP
22
diff+core
1
0.4332
null
63
48
char_000078.jpg
冚
char
cantonese
charset
clean
ChironSungHK-H
ChironSungHK-H
OFL-1.1
BMP
22
diff+core
1
0.2592
null
84
48
char_000079.jpg
冚
char
cantonese
charset
light
NotoSansTC-VF@900
NotoSansTC-VF
OFL-1.1
BMP
22
diff+core
1
0.5027
null
84
48
char_000080.jpg
冚
char
cantonese
charset
light
ChironSungHK-N
ChironSungHK-N
OFL-1.1
BMP
22
diff+core
1
0.2179
null
52
48
char_000081.jpg
冚
char
cantonese
charset
light
ChironHeiHK-B
ChironHeiHK-B
OFL-1.1
BMP
22
diff+core
1
0.5793
null
67
48
char_000082.jpg
冚
char
cantonese
charset
medium
ChironHeiHK-M
ChironHeiHK-M
OFL-1.1
BMP
22
diff+core
1
0.4072
null
79
48
char_000083.jpg
冧
char
cantonese
charset
hard
ChironHeiHK-B
ChironHeiHK-B
OFL-1.1
BMP
19
diff+core
1
0.5799
null
54
48
char_000084.jpg
冧
char
cantonese
charset
light
NotoSerifHK-VF@300
NotoSerifHK-VF
OFL-1.1
BMP
19
diff+core
1
0.4427
null
48
48
char_000085.jpg
冧
char
cantonese
charset
light
ChironSungHK-EL
ChironSungHK-EL
OFL-1.1
BMP
19
diff+core
1
0.0935
null
47
48
char_000086.jpg
冧
char
cantonese
charset
medium
ChironSungHK-L
ChironSungHK-L
OFL-1.1
BMP
19
diff+core
1
0.0631
null
65
48
char_000087.jpg
冧
char
cantonese
charset
light
NotoSerifTC-VF@400
NotoSerifTC-VF
OFL-1.1
BMP
19
diff+core
1
0.1474
null
67
48
char_000088.jpg
冧
char
cantonese
charset
light
ChironSungHK-N
ChironSungHK-N
OFL-1.1
BMP
19
diff+core
1
0.3723
null
46
48
char_000089.jpg
冧
char
cantonese
charset
light
ChironSungHK-B
ChironSungHK-B
OFL-1.1
BMP
19
diff+core
1
0.4866
null
70
48
char_000090.jpg
劏
char
cantonese
charset
clean
NotoSansTC-VF@700
NotoSansTC-VF
OFL-1.1
BMP
2
core
1
0.5692
null
62
48
char_000091.jpg
劏
char
cantonese
charset
clean
ChironSungHK-EL
ChironSungHK-EL
OFL-1.1
BMP
2
core
1
0.2196
null
87
48
char_000092.jpg
劏
char
cantonese
charset
light
NotoSerifTC-VF@900
NotoSerifTC-VF
OFL-1.1
BMP
2
core
1
0.2648
null
52
48
char_000093.jpg
劏
char
cantonese
charset
light
hkcs-traditional-bmp-canonicalonly
hkcs-traditional-bmp-canonicalonly
OFL-1.1
BMP
2
core
1
0.1862
null
47
48
char_000094.jpg
劏
char
cantonese
charset
light
ChironHeiHK-EL
ChironHeiHK-EL
OFL-1.1
BMP
2
core
1
0.0912
null
66
48
char_000095.jpg
劏
char
cantonese
charset
clean
ChironHeiHK-L
ChironHeiHK-L
OFL-1.1
BMP
2
core
1
0.4375
null
51
48
char_000096.jpg
劏
char
cantonese
charset
light
ChironSungHK-M
ChironSungHK-M
OFL-1.1
BMP
2
core
1
0.1275
null
74
48
char_000097.jpg
叻
char
cantonese
charset
light
hkcs-traditional-bmp-canonicalonly
hkcs-traditional-bmp-canonicalonly
OFL-1.1
BMP
26
core
1
0.2423
null
54
48
char_000098.jpg
叻
char
cantonese
charset
hard
ChironHeiHK-L
ChironHeiHK-L
OFL-1.1
BMP
26
core
1
0.0954
null
57
48
char_000099.jpg
End of preview. Expand in Data Studio

CantoBench-Synth

A synthetic OCR benchmark for written Cantonese (廣東話). 粵語(廣東話)OCR 合成評測資料集。

English · 繁體中文


English

What this is

4,930 synthetic text-line images testing whether vision-language models can read the characters used in written Cantonese. Everyday writing in Hong Kong uses many characters absent from Standard Written Chinese (嘅, 咗, 冇, 喺, 𨋢), and these barely appear in mainstream OCR training data.

Surveying existing resources turned up three gaps: there are twenty-odd Cantonese datasets on HuggingFace and all are text or audio, with none providing OCR data as images; recent Cantonese benchmarks measure language understanding rather than visual recognition; and some characters are missing from fonts entirely, with 𠮶 (U+20BB6) supported by none of the 33 open-licensed font instances used here.

Structure

Three tiers, with the same character deliberately appearing across them.

Tier Content Images Distinct texts Length
char Cantonese-specific characters 1,162 166 1
word Words containing Cantonese characters 1,781 600 2–4
sentence Real Cantonese sentences 1,987 667 4–25

The core design. If a model reads 冇 correctly in isolation but returns 有 inside a sentence, the failure is not visual: the language-model prior overrode the glyph. A sentence-only benchmark cannot separate those two cases.

Fifteen minimal pairs are tagged via minimal_pair_with. The matching Standard Chinese characters (有, 既, 左, 但 …) are included as role: counterpart so there is a baseline to compare against.

Character tier by Unicode block: 994 basic, 28 Extension A, 140 Extension B+. Extension blocks are over-represented on purpose: sampling by corpus frequency would fill the benchmark with common characters and never show the rare ones.

Usage

from datasets import load_dataset

ds = load_dataset("trickster-2005/cantonese-benchmark-synth", split="test")
print(ds[0]["text"], ds[0]["tier"], ds[0]["difficulty"])

# Extension-block characters only
ext = ds.filter(lambda r: r["plane"] in ("ExtA", "ExtB+"))

# Minimal pairs, for the character-vs-sentence comparison
pairs = ds.filter(lambda r: r["minimal_pair_with"] != "")

Baseline results

Model CER ↓ ACC ↑ 1−NED ↑ ACC char ACC sentence ACC ext. blocks
InternVL3.5 4B 0.3409 29.3% 0.6641 25.6% 20.9% 0.0%
Qwen3-VL 4B 0.7009 17.5% 0.2998 16.7% 5.7% 0.0%

Metrics follow OCR convention: CER (character error rate), ACC (exact sequence match), 1−NED (normalised edit similarity). The prompt deliberately does not mention Traditional Chinese, since "Cantonese characters get corrected into Standard Chinese" is the phenomenon under test.

How it was built

Corpora: Cantonese Wikipedia (CC BY-SA 4.0), HKCanCor (CC BY 4.0), rime-cantonese (CC BY 4.0).

The 154-character Cantonese set is derived by subtracting the mainland, Taiwan and Hong Kong standard character lists plus Japanese-only kanji from corpus character frequencies, then reviewed by hand.

Fonts are SIL OFL 1.1 only (33 instances): Chiron Hei HK, Chiron Sung HK, Noto CJK, Hong Kong Character Set. System Chinese fonts are not used, as their licences do not permit generating a publicly distributed dataset and their extension-block coverage is zero.

Augmentation covers rotation, perspective, elastic distortion, stroke weight, blur, noise and JPEG artefacts across four difficulty levels ({'medium': 1250, 'clean': 1215, 'light': 1709, 'hard': 756}).

Every image passes three checks against tofu characters: the font's cmap is verified before rendering, ink ratio and contrast are verified after, and an independent pass re-checks glyph coverage across the whole dataset.

Reproducible: each image's RNG derives from (seed=20260825, index), independent of worker count.

Full methodology is in the GitHub README.

Licence

CC BY-SA 4.0. The dataset is copyleft because Cantonese Wikipedia is CC BY-SA and that propagates; derivative works must use the same licence.

Please cite this dataset and the three upstream corpora.

Generation code is MIT. Fonts are SIL OFL 1.1 and are not redistributed here.

Limitations

  • All images are synthetic; performance on real Cantonese images needs separate validation.
  • Horizontal text lines only. Hong Kong signage is frequently vertical.
  • Handwriting is approximated by elastic distortion and stroke-weight variation rather than being genuine.
  • 𠮶 (U+20BB6) and 𤗲 (U+245F2) are in the character set but produce no images because no available font contains them.

Acknowledgement

Produced with assistance from Claude (Anthropic). All figures, methods and claims were reviewed and verified by the author.


繁體中文

這是什麼

4,930 張合成文字行影像,用來測視覺語言模型認不認得粵語書寫特有的字。 香港的日常書寫大量使用標準中文沒有的字(嘅、咗、冇、喺、𨋢), 而這些字在主流 OCR 的訓練資料中極少出現。

盤點現有資源後發現三件事:HuggingFace 上的粵語資料集有二十多個,全部是純文字或語音, 未找到以影像形式提供的;近年的粵語基準測試評估的是語言理解而非視覺辨識; 部分字連字型都缺,𠮶(U+20BB6)在本專案使用的 33 個開源字型實例中支援數為 0。

結構

三層結構,同一個字刻意跨層出現。

層級 內容 張數 相異文字 字數
char 粵語特有字 1,162 166 1
word 含粵語字的詞 1,781 600 2–4
sentence 真實粵語句子 1,987 667 4–25

核心設計。 如果模型在單字層把 冇 認對、在句子層卻讀成 有, 那就不是視覺問題,而是語言模型的先驗蓋過了字形。 只測句子的評測分不出這兩種情況。

15 組最小對立對以 minimal_pair_with 標記。書面語對照字(有、既、左、但等) 以 role: counterpart 收錄,作為比較的基準線。

單字層 Unicode 分區:基本區 994、 擴展 A 區 28、擴展 B 區以上 140。 擴展區刻意超額配置:按語料頻率抽樣的話,常用字會塞滿評測集,罕見字一次都不會出現。

使用方式

from datasets import load_dataset

ds = load_dataset("trickster-2005/cantonese-benchmark-synth", split="test")
print(ds[0]["text"], ds[0]["tier"], ds[0]["difficulty"])

# 只取擴展區字元
ext = ds.filter(lambda r: r["plane"] in ("ExtA", "ExtB+"))

# 只取最小對立對,做單字層與句子層的對照
pairs = ds.filter(lambda r: r["minimal_pair_with"] != "")

基線跑分

模型 CER ↓ ACC ↑ 1−NED ↑ 單字層 ACC 短句層 ACC 擴展區 ACC
InternVL3.5 4B 0.3409 29.3% 0.6641 25.6% 20.9% 0.0%
Qwen3-VL 4B 0.7009 17.5% 0.2998 16.7% 5.7% 0.0%

指標採 OCR 慣例:CER(字元錯誤率)、ACC(整句完全正確率)、1−NED(正規化編輯相似度)。 prompt 刻意不提「繁體中文」,因為「粵語字被糾正成書面中文」正是要測的現象。

製作方式

語料:粵語維基百科 (CC BY-SA 4.0)、HKCanCor(CC BY 4.0)、 rime-cantonese(CC BY 4.0)。

154 個粵語特有字的字表,是從語料字頻扣掉兩岸港的標準字表與日文專用漢字 推導而來,再經人工複核。

字型只用 SIL OFL 1.1(33 個實例):昭源黑體、昭源宋體、 Noto CJK、香港民間字集。不使用系統中文字型,因為其授權不允許用於產生公開散布的資料集, 且擴展區覆蓋率為 0。

增強包含旋轉、透視、彈性形變、筆畫粗細、模糊、雜訊、JPEG 壓縮痕跡, 分四個難度等級({'medium': 1250, 'clean': 1215, 'light': 1709, 'hard': 756})。

每張影像都通過三道防豆腐字檢查:渲染前驗證字型 cmap、渲染後驗證墨水比例與對比、 最後再對整份資料集獨立複查字形覆蓋。

可重現:每張圖的亂數由 (seed=20260825, index) 推導,與 worker 數量無關。

完整方法論見 GitHub README。

授權

CC BY-SA 4.0。 因粵語維基百科是 CC BY-SA 且會傳染,本資料集受 copyleft 約束, 衍生作品須以相同授權釋出。

請同時引用本資料集與三個上游語料來源。

生成程式碼為 MIT。字型為 SIL OFL 1.1,不隨資料集散布。

限制

  • 全部是合成影像,真實粵語影像上的表現需另外驗證。
  • 只有橫排文字行。香港招牌大量使用直排。
  • 手寫只以彈性形變與筆畫粗細變化近似,並非真實手寫。
  • 𠮶(U+20BB6)與 𤗲(U+245F2)在字表中但產不出影像,因為沒有可用字型收錄。

聲明

由 Claude(Anthropic)輔助產出,所有數據、方法與敘述均經作者人工審核確認。

Downloads last month
18