Skip to main content

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

Project description

Sudachi C Imitator Transformers

This package imitates Japanese morphological analysis of Sudachi SplitMode.C 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_c_imitator_transformers

Usage Examples

>>> import sudachi_c_imitator_transformers
>>> tagger = sudachi_c_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_c_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_c_imitator_transformers-0.2.1.tar.gz.

File metadata

File hashes

Hashes for sudachi_c_imitator_transformers-0.2.1.tar.gz
Algorithm Hash digest
SHA256 227d4233c4afc1d5d2b0ed34da886a29b88c49f880d242a5d5ed2377901afd7a
MD5 ea2e6c94f9abce133dcf33ec6520e550
BLAKE2b-256 570784bf973093bfd37095bd679f9aee2ca2e15e9044739ccd3d339b1ef17860

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sudachi_c_imitator_transformers-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5ec795ad2388c7c24a18039f76b15854107893d9a7447b430baafe935a2b7f3
MD5 aba4de928d0bed30f580f6fd78d99010
BLAKE2b-256 4976b72fa7ba056aa03609f3e00d9b9f77bf6253b2fb1e3e288bdba9a2ca2787

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