Python port of the reranker: core/lm.py runs the same CKIP gpt2-tiny-chinese model with numpy (batched per candidate length, scores match the Swift and reference implementations), Converter.kbest, core/reranker.py (modes, time budget, pause after overruns, cache), core/system_monitor.py (Windows: CPU usage and battery saver; Linux: load average, thermal zones, low-power profile and low battery) and core/ai.py (settings.json, background model loading, status line). Windows: numpy wheels for PIME's 32-bit Python 3.8 (PIME 1.3) and 3.15 (PIME 2) are bundled under autozhuyin/vendor and picked by Python version; a settings menu on the taskbar IME icon and the language bar (left click on the icon toggles English mode). Linux: install.sh uses the system numpy or downloads the matching wheel from PyPI (tools/fetch_numpy.py, SHA-256 checked); an IBus settings menu. Without numpy or the model the input method works as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
74 lines
3.4 KiB
Plaintext
74 lines
3.4 KiB
Plaintext
自動注音 AutoZhuyin — 第三方授權聲明 / Third-party notices
|
|
==========================================================
|
|
|
|
本軟體包含或使用下列第三方資料。
|
|
This software includes or uses the following third-party material.
|
|
|
|
|
|
1. 小麥注音 McBopomofo — 詞庫資料 (lexicon data)
|
|
------------------------------------------------
|
|
https://github.com/openvanilla/McBopomofo
|
|
|
|
lexicon.txt is converted from McBopomofo's data files (BPMFBase.txt,
|
|
BPMFMappings.txt, phrase.occ) by scripts/convert-mcbopomofo.py. No McBopomofo
|
|
program code is included.
|
|
|
|
MIT License
|
|
|
|
Copyright (c) 2011-2026 Mengjuei Hsieh et al.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|
|
|
|
|
|
2. Webster's Second International Dictionary — 英文字典 (English word list)
|
|
--------------------------------------------------------------------------
|
|
english-dict.txt is filtered from /usr/share/dict/words (Webster's Second
|
|
International Dictionary, 1934), which is in the public domain.
|
|
|
|
|
|
3. PIME — Windows 輸入法框架 (input method framework)
|
|
----------------------------------------------------
|
|
https://github.com/EasyIME/PIME — GNU LGPL 2.1
|
|
|
|
The Windows version runs as a module inside PIME, which users install
|
|
separately. No PIME code is included in this software.
|
|
|
|
|
|
4. CKIP GPT2 Tiny Chinese — AI 選字語言模型 (language model)
|
|
-----------------------------------------------------------
|
|
https://huggingface.co/ckiplab/gpt2-tiny-chinese
|
|
https://github.com/ckiplab/ckip-transformers
|
|
Author: Mu Yang at CKIP, Academia Sinica (中央研究院 詞庫小組)
|
|
License: GNU General Public License v3.0 (full text: GPL-3.0.txt)
|
|
|
|
lm.bin is the model's weights converted to float16 by training/lm/export_lm.py;
|
|
lm-vocab.txt is its vocabulary (from bert-base-chinese). They are used unmodified
|
|
otherwise, to rerank conversion candidates ("AI 選字"). The source code of this input
|
|
method, including the conversion script and the code that runs the model, is
|
|
available from the project repository.
|
|
|
|
|
|
5. NumPy — 數值運算 (Windows / Linux, for AI 選字)
|
|
------------------------------------------------
|
|
https://numpy.org — BSD 3-Clause License (and the licenses of the libraries it bundles,
|
|
such as OpenBLAS). The Windows package includes unmodified NumPy wheels for 32-bit
|
|
Python 3.8 and 3.15 under autozhuyin/vendor/; the Linux installer downloads the
|
|
matching wheel from PyPI when the system has no NumPy. Each copy keeps its license
|
|
files in its numpy-*.dist-info folder.
|