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.0.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.0.tar.gz.

File metadata

File hashes

Hashes for unidic_lite_imitator_transformers-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3d5557e5b462efb7ab0245221de28924966dc7c2287bea81c113b73c8844e20d
MD5 60503a3c21a6efb31437e82ebbcba43a
BLAKE2b-256 9f27731dd8fa1d709f11c530362204966c733910d42f40de613e5245b4a5972d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for unidic_lite_imitator_transformers-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e49155ae94505bbc58cf5db3ce558ffccabe37ccea6b74a4e0ac5b8256f919b6
MD5 0cad0d52616b2dd8171e24df2b84117a
BLAKE2b-256 b9ceb6a859c62a36233b82d42b770bfd58342187ca20338f9d4c790c8f710c95

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