|
Download runtime/PYPI.md from iapp/OpenThai2.0-NLP-Core-Lite: direct link, hf CLI and curl.
- Browser
- Download file 3.41 kB
-
https://huggingface.co/iapp/OpenThai2.0-NLP-Core-Lite/resolve/main/runtime/PYPI.md
- Command line
-
hf download hf://iapp/OpenThai2.0-NLP-Core-Lite/runtime/PYPI.md
-
curl -L -o PYPI.md https://huggingface.co/iapp/OpenThai2.0-NLP-Core-Lite/resolve/main/runtime/PYPI.md
3.41 kB
| # OpenThai2.0-NLP-Core-Lite on PyPI, through `iapp-ai[nlp]` | |
| For the iapp-ai team, 2026-12-02. HANDOFF.md stays the reference for the API. | |
| ## Where it stands | |
| - **2026-12-01, released:** `openthai2.0-nlp-core-lite` 0.2.1 and iapp-ai 2.1.0 on PyPI. `pip install "iapp-ai[nlp]"` | |
| brings NLP Core as `iapp_ai.nlp.core` and `iapp_ai.nlp.NLPCore`. The extra pins | |
| `openthai2.0-nlp-core-lite>=0.2,<0.3`. | |
| - **2026-12-02, version 0.2.2:** the model of the paper and of the model card. The heads of sentences, clauses and | |
| named entities were trained again; words, POS tags and both kinds of tree give the same outputs as 0.2.1. Every | |
| name and argument stays, so 0.2.2 is inside the pin. Its README, which PyPI shows, has the current results. | |
| ## Decided (Yacht, 2026-12-01) | |
| - **`iapp-ai[nlp]` first.** Users get NLP Core with `pip install "iapp-ai[nlp]"`. The wheel also stays on Hugging | |
| Face. | |
| - **NLP Core is a package of its own, not mixed with the released word segmenter** (OpenThai2.0-LATTE-WordSeg-Lite). | |
| `word_tokenize`, `tokenize`, `word_tokenize_nbest`, `Tokenizer` and `iapp-tokenize` stay as in iapp-ai 2.0.0, | |
| with the same output. NLP Core comes under names of its own, as FUNCTIONS.md lists them. | |
| - **Your option A.** The model ships as its own wheel on PyPI, `openthai2.0-nlp-core-lite`, and the `nlp` extra | |
| pulls it in. `pip install iapp-ai` stays small. | |
| ## Version numbers | |
| iapp-ai is more than its NLP part, so a model update should never need an iapp-ai release. Updates that keep every | |
| function and argument stay in 0.2.x, inside the pin. A change of a function or an argument would come as 0.3.0, | |
| announced ahead, so that it can join one of your planned iapp-ai releases. | |
| ## Update to 0.2.2 | |
| 1. Upload the wheel 0.2.2 that came with the kit, as it is: do not rebuild it, and add no sdist. | |
| `twine upload openthai2_0_nlp_core_lite-0.2.2-py3-none-any.whl`. The wheel is pure Python and installs on every | |
| platform. | |
| 2. iapp-ai needs no release and no code change: the pin of 2.1.0 takes 0.2.2. A new install of `iapp-ai[nlp]` gets | |
| it at once, and an existing install moves with `pip install -U openthai2.0-nlp-core-lite`. | |
| 3. On each platform, in a fresh environment: `pip install "iapp-ai[nlp]"`, then the tests of the kit. Use Windows | |
| x64, macOS arm64, Linux x86-64 and Linux aarch64, with Python 3.10 and 3.14. | |
| 4. Optional, in whichever iapp-ai release comes next for its own reasons: the floor | |
| `openthai2.0-nlp-core-lite>=0.2.2,<0.3`. | |
| ## Done when | |
| - `pip install "iapp-ai[nlp]"` in a fresh environment brings `openthai2.0-nlp-core-lite` 0.2.2, with the SHA-256 | |
| we send. | |
| - `pip install iapp-ai` works as today, without NumPy or ONNX Runtime. | |
| - The 50 tests of the kit pass on the four platforms. | |
| ## Licences and wording | |
| - Model files: CC BY-SA 4.0. Whoever modifies them and shares them must share them under the same licence. This | |
| does not reach code that only uses them. | |
| - Runtime code: Apache-2.0. The bundled dictionary: CC BY-SA 4.0 and the Unicode licence. The licence texts and | |
| the NOTICE are inside the wheel. | |
| - The licence of iapp-ai itself does not change. | |
| - In documents and posts: "ใช้ commercial (เชิงพาณิชย์) ได้" or "commercial use allowed". Never "open source". | |
| ## Internal | |
| This file, HANDOFF.md, the kit and the `runtime/` folder of the private repository are for the team. Only the | |
| wheels are public. | |