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

File metadata

File hashes

Hashes for sudachi_b_imitator_transformers-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cebc1411945263856233d296e848ef8837dfee733c2c0935944bd9ffe3e0fdac
MD5 46c3cfe0a7ab31cf89b58fcebc8bc56c
BLAKE2b-256 1ba1040dd641ecbdb660976d001d04b7261e63783296d0a3b32d71d869530e5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sudachi_b_imitator_transformers-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13faedf6884b9a2ddfbe07b5329ef583b6e0f9450594494fd55fbb5db98f7574
MD5 bb8178cb83b67b0bc0878d3c038e7aea
BLAKE2b-256 bb875af1347beab2345d4eb104c00a6bc9d5d05982214156ace768bf0a37e661

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