skillfed

tinysegmenter

Very compact Japanese tokenizer

tinysegmenter v0.4 510.1K downloads/30d#6,269 on PyPI
Permissive license New BSD Abandoned released

What it is and what it does

TinySegmenter is a Python port of a compact Japanese tokenizer originally written in JavaScript. It segments Japanese text into individual morphological units (words, particles, suffixes) without requiring a dictionary or machine learning model, making it extremely lightweight and fast. The library exposes a simple API: instantiate a TinySegmenter object and call its tokenize() method on a Unicode string to get a list of tokens.

The package is designed for straightforward Japanese text processing tasks where you need basic word segmentation without the overhead of larger NLP frameworks. It has no runtime dependencies and works as a standalone module. However, the project is abandoned—the last release was in 2018 and there is no active maintenance, so you should expect no bug fixes or updates.

Use it for:

  • Segment Japanese text into tokens for search indexing or keyword extraction in a lightweight application.
  • Tokenize Japanese user input for simple text analysis or filtering without pulling in heavy NLP dependencies.
  • Use as a baseline tokenizer in NLTK pipelines by subclassing both TinySegmenter and NLTK's TokenizerI interface.
  • Process Japanese text in resource-constrained environments where dictionary-based or neural tokenizers are too heavy.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

TinySegmenter is a compact Japanese tokenizer that breaks Japanese text into morphological tokens without requiring external dictionaries or machine learning models.

No, unless you have a specific, narrow need for a lightweight Japanese tokenizer and can tolerate an abandoned codebase. The package has not been maintained since 2018, and there is no guarantee it will work correctly with modern Python versions or character sets. For active projects, consider a maintained alternative like MeCab, Janome, or a modern NLP library.

Install

tinysegmenter on PyPI

pip

pip install tinysegmenter

uv

uv add tinysegmenter

poetry

poetry add tinysegmenter

Installing tinysegmenter

Before you install

High install friction: the package is abandoned (last release 2018-09-16, 2889 days ago) with no active maintenance. No runtime dependencies, but the age and lack of ongoing support mean you are on your own for any issues.

License in practice

Distributed under New BSD License (permissive), so you can use, modify, and redistribute freely with attribution and no warranty.

Quickstart

import tinysegmenter
segmenter = tinysegmenter.TinySegmenter()
tokens = segmenter.tokenize(u"私の名前は中野です")
print(' | '.join(tokens))

Requires Python 2.6 or above (including Python 3); no other external dependencies, but the package is unmaintained since 2018.

Verify before relying

  • Whether the tokenizer's accuracy and behavior remain adequate for modern Japanese text and character sets.
  • Compatibility with Python versions beyond what was tested at the time of the last release.
  • Whether the package works correctly with contemporary dependency versions if you need to integrate it into a larger stack.

Package facts

License New BSD (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance abandoned — 2,889 days since the last release
First released
Downloads 510,066/month — #6,269 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: tinysegmenter-0.4.tar.gz

Development Status :: 4 - BetaLicense :: OSI Approved :: BSD LicenseOperating System :: POSIX :: LinuxProgramming Language :: PythonTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Information AnalysisTopic :: Text Processing :: Linguistic

Tags

japanese text tokenizationjapanese morphological segmentationcompact japanese tokenizerjapanese word segmentationlightweight nlp japanesejapanese language processing
japanese-nlptokenizationabandoned

More Artificial Intelligence packages

Further reading