Unidic Lite Imitator
This package imitates Japanese morphological analysis of mecab and unidic_lite with a small onnx model.
You can add tokenization and part-of-speech estimation to your environment
with only 2MB additoinal disk space if you already have onnxruntime in your environment.
Installation
$ pip install unidic_lite_imitator
Usage Examples
>> import unidic_lite_imitator
>> tagger = unidic_lite_imitator.Tagger()
>> sample_text = '使い方のサンプルです。'
>> tagger.parse(sample_text)
[('使い', '動詞'), ('方', '接尾辞'), ('の', '助詞'), ('サンプル', '名詞'), ('です', '助動詞'), ('。', '補助記号')]
Input string length must be 256 or less.
Release files for unidic-lite-imitator 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unidic_lite_imitator-0.2.1.tar.gz | 1.6 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unidic_lite_imitator-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.1 MB
Release files / unidic_lite_imitator-0.2.1.tar.gz
| Download URL | unidic_lite_imitator-0.2.1.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebe5377485337f8dac8c09f877fde96e9288df46d01450fafc27315989d05a24
|
|
BLAKE2b-256 checksum How to use checksums |
b659d67ba37c9ed94c147b72856a8d4c66506c989074f89d61d880c0cd3135b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / unidic_lite_imitator-0.2.1-py3-none-any.whl
| Download URL | unidic_lite_imitator-0.2.1-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
708686e6597f66d0e1faa066dc6603bb8c62ef3b2c3857a1573f9b6792c901f8
|
|
BLAKE2b-256 checksum How to use checksums |
57651db8de40f29adacef0073f4cce237478e0782b4c2390b3368b69ed3de739
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|