Skip to main content

Imitate Japanese morphological analysis of Sudachi SplitMode.B and SudachiDict-full with a small transformers model.

Project description

Sudachi B Imitator Transformers

This package imitates Japanese morphological analysis of Sudachi SplitMode.B and SudachiDict-full with a small transformers model.
You can add tokenization and part-of-speech estimation to your environment
with only 4MB additoinal disk space if you already have transrofmers in your environment.

Installation

$ pip install sudachi_b_imitator_transformers

Usage Examples

>>> import sudachi_b_imitator_transformers
>>> tagger = sudachi_b_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

sudachi_b_imitator_transformers-0.2.1.tar.gz (2.2 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 sudachi_b_imitator_transformers-0.2.1.tar.gz.

File metadata

File hashes

Hashes for sudachi_b_imitator_transformers-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d7c9b95370a085f122349565c7e57319861f052318830637ad76e41e0fda6ce9
MD5 7721fc09c04adf3426ab9b18fa114bed
BLAKE2b-256 5f59dece2f7aac880596ad62d27f5f9a2df464df9cdb47310f760359f3e1b6ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sudachi_b_imitator_transformers-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7315b3383ad61f04bc4ece25c4e8d1578ea53acce0c4abb3ab5e85e1beb6643
MD5 b66cd2da84ba16d9035e2fc6032858a0
BLAKE2b-256 45fbacc121febff6e39eefdaa0c84579f7d0440889934f09580df074289ac3af

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