Skip to main content

Imitate Japanese morphological analysis of mecab and unidic_lite with a small transformers model.

Project description

Unidic Lite Imitator Transformers

This package imitates Japanese morphological analysis of mecab and unidic_lite with a small transformers model.
You can add tokenization and part-of-speech estimation to your environment
with only 2MB additoinal disk space if you already have transformers in your environment.

Installation

$ pip install unidic_lite_imitator_transformers

Usage Examples

>> import unidic_lite_imitator_transformers
>> tagger = unidic_lite_imitator_transformers.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_transformers-0.2.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file unidic_lite_imitator_transformers-0.2.1.tar.gz.

File metadata

File hashes

Hashes for unidic_lite_imitator_transformers-0.2.1.tar.gz
Algorithm Hash digest
SHA256 99dc8dc5e256885cf860efa5318d0aa12fabfce6baa64f1949a51e8f209bb443
MD5 5c2f4d66af612d8eaa1ae595753be173
BLAKE2b-256 f5688ca394552d07e71fa872cff8969e7f9d752a8ca3c0187637b74794fa21b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unidic_lite_imitator_transformers-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd8f784c74c320f690fc634c0b0efda02d71d6092da7c41393ffb289c6af968e
MD5 f507a37fd9a27909791732961c1e3069
BLAKE2b-256 f1d4aed408e63a3932f7e27a7a0a7f224afa6b16c62d084da144da7b8c85ed32

See more details on using hashes here.

Supported by

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