Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unidic_lite_imitator-0.2.1.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

unidic_lite_imitator-0.2.1-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

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

Hashes for unidic_lite_imitator-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ebe5377485337f8dac8c09f877fde96e9288df46d01450fafc27315989d05a24
MD5 f9a70085ac2d6a9eb23f866d683a7e99
BLAKE2b-256 b659d67ba37c9ed94c147b72856a8d4c66506c989074f89d61d880c0cd3135b8

See more details on using hashes here.

File details

Details for the file unidic_lite_imitator-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for unidic_lite_imitator-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 708686e6597f66d0e1faa066dc6603bb8c62ef3b2c3857a1573f9b6792c901f8
MD5 806733eb7c51478f6aed0ac14c61cd6f
BLAKE2b-256 57651db8de40f29adacef0073f4cce237478e0782b4c2390b3368b69ed3de739

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page