Replace no-emoji variant with a kaomoji flag column
Browse filesSQLite 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 +54 -64
- dictionary.sqlite3 +2 -2
- entries-no-emoji.tsv +0 -3
- predictions-no-emoji.tsv +0 -3
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 |
-
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
##
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|