#86 · Primary category: NLP Tools & Text Processing

jieba-php

chinese-text-segmentation machine-learning natural-language-processing nlp

"結巴"中文分詞:做最好的 PHP 中文分詞、中文斷詞組件。 / "Jieba" (Chinese for "to stutter") Chinese text segmentation: built to be the best PHP Chinese word segmentation module.

Project last updated:12/16/25

GitHub Stars

1.4K

Forks

257

Contributors

16

License

MIT

Why we included this project

PHP developers who need Chinese text segmentation for search or text analysis have few mature options, and jieba-php brings the well-known Jieba algorithm to that ecosystem. It offers three modes: precise segmentation for analysis, a full mode that surfaces every possible word, and a search-engine mode that re-splits long words for better recall when building inverted indexes. Out-of-vocabulary terms are handled by an HMM with Viterbi decoding, and you can supply custom dictionaries to fix domain-specific words the built-in lexicon misses. It also supports traditional Chinese and other CJK text, and bundles TF-IDF keyword extraction and part-of-speech tagging, so it works as a small toolkit rather than a single splitter. When you want fast, cheap segmentation without calling an LLM, this is a solid Composer-installable option.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category