Imitate Japanese morphological analysis of mecab and unidic_lite with a small onnx model.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file unidic_lite_imitator-0.2.1.tar.gz
.
File metadata
- Download URL: unidic_lite_imitator-0.2.1.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ebe5377485337f8dac8c09f877fde96e9288df46d01450fafc27315989d05a24
|
|
MD5 |
f9a70085ac2d6a9eb23f866d683a7e99
|
|
BLAKE2b-256 |
b659d67ba37c9ed94c147b72856a8d4c66506c989074f89d61d880c0cd3135b8
|
File details
Details for the file unidic_lite_imitator-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: unidic_lite_imitator-0.2.1-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
708686e6597f66d0e1faa066dc6603bb8c62ef3b2c3857a1573f9b6792c901f8
|
|
MD5 |
806733eb7c51478f6aed0ac14c61cd6f
|
|
BLAKE2b-256 |
57651db8de40f29adacef0073f4cce237478e0782b4c2390b3368b69ed3de739
|