tinysegmenter
Very compact Japanese tokenizer
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 tinysegmenteruv
uv add tinysegmenterpoetry
poetry add tinysegmenterInstalling 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
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
JanomeJanome is a Japanese morphological analyzer…
permissive · top 15,000 on PyPI
nagisaNagisa performs Japanese word segmentation and…
permissive · top 5,000 on PyPI
segtokSplits Indo-European text into sentences and…
permissive · top 15,000 on PyPI
mecab-python3Python wrapper for MeCab, a morphological…
permissive · top 5,000 on PyPI
jiebaJieba segments Chinese text into words using…
permissive · top 5,000 on PyPI
jieba3kPerforms Chinese word segmentation, breaking…
unclear · top 15,000 on PyPI
mecabPython binding for MeCab, a morphological…
copyleft · top 15,000 on PyPI
SudachiDict-smallProvides the small-edition Sudachi dictionary…
permissive · top 15,000 on PyPI
ja-ginzaA pre-trained Japanese NLP model for spaCy that…
permissive · top 15,000 on PyPI
SudachiPySudachiPy is a Python binding for Sudachi.rs, a…
permissive · top 5,000 on PyPI