fa0311 commited on
Commit
edf7be8
·
verified ·
1 Parent(s): 1715669

Replace no-emoji variant with a kaomoji flag column

Browse files

SQLite gains a kaomoji column (0/1) on entries/predictions; filter with WHERE NOT kaomoji. Only symbol-structured emoticons are flagged — Unicode emoji are legitimate conversions and stay unflagged. The no-emoji TSV variants are removed in favor of the SQLite flag.

README.md CHANGED
@@ -1,64 +1,54 @@
1
- ---
2
- license: other
3
- license_name: cc-by-4.0-compilation-with-upstream-terms
4
- language:
5
- - ja
6
- size_categories:
7
- - 1M<n<10M
8
- tags:
9
- - japanese
10
- - ime
11
- - dictionary
12
- configs:
13
- - config_name: conversion
14
- data_files:
15
- - split: train
16
- path: entries.tsv
17
- - config_name: prediction
18
- data_files:
19
- - split: train
20
- path: predictions.tsv
21
- - config_name: conversion-no-emoji
22
- data_files:
23
- - split: train
24
- path: entries-no-emoji.tsv
25
- - config_name: prediction-no-emoji
26
- data_files:
27
- - split: train
28
- path: predictions-no-emoji.tsv
29
- ---
30
- # IME Dictionary Core
31
-
32
- Japanese IME dictionary pack. The SQLite database and TSV files contain the
33
- same conversion and prediction records. See `NOTICE.md` before redistribution.
34
-
35
- - Compilation license: `CC-BY-4.0`
36
- - SQLite tables: `entries`, `entry_sources`, `predictions`, `prediction_sources`
37
- - TSV exports: `entries.tsv`, `entries-no-emoji.tsv`, `predictions.tsv`,
38
- `predictions-no-emoji.tsv`
39
-
40
- ## Emoji exclusion
41
-
42
- The SQLite `emoji` column (0/1) drives the no-emoji TSVs (`WHERE NOT
43
- emoji`). A candidate is flagged when it contains a Unicode emoji or
44
- `\p{Extended_Pictographic}`, a decorative `So` symbol (HEART / STAR /
45
- FLOWER / SPARKLE), matches an ASCII emoticon (`:-)`, `orz`, `T_T`), looks
46
- structurally like a kaomoji (bracket / face-mark / arm-mark heuristics,
47
- <= 48 chars), or is sourced solely from the project's emoji and kaomoji
48
- dictionaries.
49
-
50
- ## Cost calibration
51
-
52
- Costs are on Mozc's word-cost scale; layers merged in order, the first
53
- provider of a (reading, candidate) wins. Project-original dictionaries were
54
- quantile-mapped onto Mozc via their shared entries, Mozc was added
55
- unchanged, then each remaining layer was isotonic-calibrated on its overlap
56
- with the pack and offset by a fixed penalty, adding only novel entries:
57
- `ipadic` +5000, `sudachi` +6000, `skk` (core subset) +5000. Pre-normalization: sudachi `clamp(7000 + cost/4, 6000,
58
- 16000)`; original emoji files `18000 + clamp(cost, 0, 10000)/2`; other
59
- original files clamped to per-file floors (default 4500) and a 30000
60
- ceiling.
61
-
62
- ## Related repository
63
-
64
- For the larger GPL-licensed vocabulary, see [ime-dictionary-extended-gpl](https://huggingface.co/datasets/fa0311/ime-dictionary-extended-gpl).
 
1
+ ---
2
+ license: other
3
+ license_name: cc-by-4.0-compilation-with-upstream-terms
4
+ language:
5
+ - ja
6
+ size_categories:
7
+ - 1M<n<10M
8
+ tags:
9
+ - japanese
10
+ - ime
11
+ - dictionary
12
+ configs:
13
+ - config_name: conversion
14
+ data_files:
15
+ - split: train
16
+ path: entries.tsv
17
+ - config_name: prediction
18
+ data_files:
19
+ - split: train
20
+ path: predictions.tsv
21
+ ---
22
+ # IME Dictionary Core
23
+
24
+ Japanese IME dictionary pack. The SQLite database and TSV files contain the
25
+ same conversion and prediction records. See `NOTICE.md` before redistribution.
26
+
27
+ - Compilation license: `CC-BY-4.0`
28
+ - SQLite tables: `entries`, `entry_sources`, `predictions`, `prediction_sources`
29
+ - TSV exports: `entries.tsv`, `predictions.tsv`
30
+
31
+ ## Kaomoji flag
32
+
33
+ The SQLite `kaomoji` column (0/1) marks symbol-structured emoticons; filter
34
+ with `WHERE NOT kaomoji` for a face-free dictionary. A candidate is flagged
35
+ when it matches an ASCII emoticon (`:-)`, `orz`, `T_T`), looks structurally
36
+ like a kaomoji (bracket / face-mark / arm-mark heuristics, <= 48 chars), or
37
+ is sourced solely from the project's kaomoji dictionaries. Unicode emoji are
38
+ legitimate conversions and are NOT flagged.
39
+
40
+ ## Cost calibration
41
+
42
+ Costs are on Mozc's word-cost scale; layers merged in order, the first
43
+ provider of a (reading, candidate) wins. Project-original dictionaries were
44
+ quantile-mapped onto Mozc via their shared entries, Mozc was added
45
+ unchanged, then each remaining layer was isotonic-calibrated on its overlap
46
+ with the pack and offset by a fixed penalty, adding only novel entries:
47
+ `ipadic` +5000, `sudachi` +6000, `skk` (core subset) +5000. Pre-normalization: sudachi `clamp(7000 + cost/4, 6000,
48
+ 16000)`; original emoji files `18000 + clamp(cost, 0, 10000)/2`; other
49
+ original files clamped to per-file floors (default 4500) and a 30000
50
+ ceiling.
51
+
52
+ ## Related repository
53
+
54
+ For the larger GPL-licensed vocabulary, see [ime-dictionary-extended-gpl](https://huggingface.co/datasets/fa0311/ime-dictionary-extended-gpl).
 
 
 
 
 
 
 
 
 
 
dictionary.sqlite3 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:da7418bbf8ed0b302b904c0be12f844f5895bd17bb4d70c5a6afb9053f0d613e
3
- size 546140160
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03f558a01e2b8995f8374939198c83352d66cb6ac437a108a62a94260f5feceb
3
+ size 496467968
entries-no-emoji.tsv DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:42d352f02e90b02d4da8d91f7a7e63c3a1424b0481a4d77b71d0110eb452872a
3
- size 233086651
 
 
 
 
predictions-no-emoji.tsv DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9482349f91f4377327684317f29ef10849c3aa5f49eddb672c2dcf6ca7f93016
3
- size 14533525