Files
OSGKeyboard/OSGKeyboard/Resources/CustomLanguageModel/v1/compiled/prepared-manifest.json
T
Rocky 7ffa7ae3f2 feat(lexicon): add custom ASR language model v1 (Sogou + AI/tech brands)
Build a first-version SFCustomLanguageModelData for on-device ASR
customization, generated offline on macOS (no app code dependency).

- Scripts/lexicon: Python builders for Sogou-derived phrases (scel +
  SogouPopularDict) and a curated bilingual AI/tech/brand seed lexicon
- export_clm.swift / prepare_clm.swift: macOS CLI tools that export the
  .bin training asset and compile it into LM + Vocab via the Speech
  framework
- Resources/CustomLanguageModel: generated phrases.tsv, manifests, the
  129k-phrase .bin, and compiled LM/Vocab assets (zh_CN)
- .gitignore: ignore lexicon build cache and Python bytecode

Note: Sogou-derived data is for internal experimentation only; the
curated AI/tech seed is MIT and safe to ship.
2026-07-05 18:38:07 +08:00

16 lines
634 B
JSON

{
"client_identifier" : "com.osgkeyboard.custom-lm.v1",
"configuration" : {
"language_model" : "\/Users\/rocky\/Documents\/OSGKeyboard\/OSGKeyboard\/Resources\/CustomLanguageModel\/v1\/compiled\/LM",
"vocabulary" : "\/Users\/rocky\/Documents\/OSGKeyboard\/OSGKeyboard\/Resources\/CustomLanguageModel\/v1\/compiled\/Vocab",
"weight" : null
},
"generated_at" : "2026-07-05T08:24:55Z",
"input_bin" : "OSGKeyboardCLM.bin",
"input_bin_bytes" : 1976593,
"language_model" : "LM",
"language_model_bytes" : 6398585,
"prepare_seconds" : 28.565693974494934,
"vocabulary" : "Vocab",
"vocabulary_bytes" : 178816
}