
jieba-php
Segment Chinese text in PHP applications with jieba-php, a library for Chinese word tokenization.

About jieba-php
jieba-php is an open-source PHP library for segmenting Chinese text into words. It provides precise, full, and search-engine modes through cut and cutForSearch methods that accept UTF-8 strings and return iterable arrays.
It supports Traditional Chinese via big dictionary mode, custom user dictionaries, CJK text handling, TF-IDF integration, and part-of-speech tagging. Full mode scans all possible words but does not resolve ambiguity and needs a sufficient dictionary, and the project notes that LLM models may give better segmentation results.
Key features
- Precise, full, and search-engine Chinese segmentation modes
- Traditional Chinese segmentation using big dictionary mode
- Custom user dictionary loading for domain-specific terms
- CJK text handling for Chinese, Japanese, and Korean
- TF-IDF integration and part-of-speech tagging
- cut and cutForSearch methods returning iterable arrays
- Offers three segmentation modes for text analysis and search
- Supports custom dictionaries and custom part-of-speech tags
- Installable via Composer with manual install option
- Full mode does not resolve ambiguity
- Full mode requires a sufficient dictionary
- Project notes LLMs may produce better segmentation results
jieba-php at a glance
- Category
- Development › Developer Tools
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 5, 2026 · Online when checked
- Listed
- Oct 5, 2026
Guides for Developer Tools
jieba-php alternatives
Tools and sites you could use instead, ranked by how closely they match.
Segment Chinese text with jieba, a Python package for natural language processing.
Python developers can use Zipline’s event-driven library to backtest algorithmic trading strategies.
Tesseract provides an open-source OCR engine for extracting text from images, with its main repository hosted on GitHub.
Machine learning pipelines can use whylogs, an open-source library for logging data quality and model performance.
This Node.js library implements Latent Dirichlet Allocation topic modeling in JavaScript.
The fastai deep learning library includes documentation and setup guidance, including instructions for use with Google Colab.
Popular in Developer Tools
Well-known listings from the same topic.
jieba-php FAQ
How do I install jieba-php?
How do I handle Traditional Chinese?
How do I add custom terms?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.













