Skip to main content

Super compact Japanese tokenizer

Project description


TinySegmenter -- Super compact Japanese tokenizer was originally created by
(c) 2008 Taku Kudo for javascript under the terms of a new BSD licence.
For details, see [here](

tinysegmenter for python2.x was written by Masato Hagiwara.
for his information see [here](

This tinysegmenter is modified for python3.x and python2.x for distribution by Tatsuro Yasukawa.
Additionaly, this tinysegmenter is modified for being more faster - thanks to
@chezou, @cocoatomo and @methane.

See info about [tinysegmenter](


pip install tinysegmenter3


import tinysegmenter
statement = '私はpython大好きStanding Engineerです.'
tokenized_statement = tinysegmenter.tokenize(statement)
# ['私', 'は', 'python', '大好き', 'Standing', ' Engineer', 'です', '.']

Test Text

The [test text]( (in the `tests` directory) was [The Time Machine]( by H.G. Wells, translated to Japanese by Hiroo Yamagata under the CC BY-SA 2.0 License.

How to run Test

Install requirements from `requirements.txt` by
pip install -r requirements.txt

then run this:

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
tinysegmenter3-0.1.0.tar.gz (11.2 kB) Copy SHA256 hash SHA256 Source None Nov 3, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page