Home PHP Libraries String processing class PHP simple word segmentation library
No need to install extensions, comes with dictionary, easy to use
Use scws, which many people are familiar with, and the other one is phpanalysis
made by IT Plato
Please refer to the index.php file example
for usage.
Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

Detailed explanation of examples of Chinese word segmentation using PHP Detailed explanation of examples of Chinese word segmentation using PHP

04 Jul 2017

This article mainly introduces the Chinese word segmentation class implemented by PHP, and combines it with a complete example to analyze the specific methods of PHP's string traversal, conversion, operation and other techniques to implement the Chinese word segmentation function. Friends in need can refer to the following

Make PHP image processing simple. Image processing class based on gb library with example code download_PHP tutorial Make PHP image processing simple. Image processing class based on gb library with example code download_PHP tutorial

21 Jul 2016

Make PHP image processing simple. The image processing class based on gb library comes with sample code download. The design idea of ​​this class is borrowed from jQuery, and the image is manipulated through the concatenation method, such as: Copy the code The code is as follows: $image = new UsaImage(array('filepath'='image1.jpg')); //Overwrite the image

Detailed explanation of complete examples of Chinese word segmentation implemented in PHP Detailed explanation of complete examples of Chinese word segmentation implemented in PHP

26 May 2018

This article mainly introduces the Chinese word segmentation class implemented by PHP, and analyzes the specific methods of PHP to implement the Chinese word segmentation function based on string traversal, conversion, operation and other techniques in the form of a complete example. Friends in need can refer to the following

Simple Chinese word segmentation based on RMM Simple Chinese word segmentation based on RMM

25 Jul 2016

Simple Chinese word segmentation based on RMM

Word segmentation algorithm php unary word segmentation algorithm Word segmentation algorithm php unary word segmentation algorithm

29 Jul 2016

Word Segmentation Algorithm: Word Segmentation Algorithm PHP Uniary Word Segmentation Algorithm: The copy code code is as follows: /** * Uniary Word Segmentation Algorithm* UTF8 encodes the next character. If the ASCII code of the first character is not greater than 192, it will only occupy 1 byte. * If the ASCII code of the first character is greater than If 192 is less than 224, it occupies 2 bytes, otherwise it occupies 3 bytes * Uniary word segmentation needs to add ft_min_word_len=1 in the my.ini file of mysql * You can use the mysql query statement show variables like '%ft%' to view mysql full-text search

PHP simple Chinese word segmentation system (1/2)_PHP tutorial PHP simple Chinese word segmentation system (1/2)_PHP tutorial

20 Jul 2016

PHP simple Chinese word segmentation system (1/2). PHP simple Chinese word segmentation system structure: first word hash table, Trie index tree node advantages: in word segmentation, there is no need to predict the length of the word to be queried, and it is matched word by word along the tree chain. Cons: Construction and Maintenance Comparison

See all articles