Download the PHP package forever2077/jieba-php without Composer
On this page you can find all versions of the php package forever2077/jieba-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download forever2077/jieba-php
More information about forever2077/jieba-php
Files in forever2077/jieba-php
Download forever2077/jieba-php
More information about forever2077/jieba-php
Files in forever2077/jieba-php
Vendor forever2077
Package jieba-php
Short Description The Jieba Chinese Word Segmentation Implemented in PHP
License MIT
Homepage https://github.com/binaryoung/jieba-php
Package jieba-php
Short Description The Jieba Chinese Word Segmentation Implemented in PHP
License MIT
Homepage https://github.com/binaryoung/jieba-php
Please rate this library. Is it a good library?
Informations about the package jieba-php
Jieba PHP
结巴分词 PHP 实现 - The Jieba Chinese Word Segmentation Implemented in PHP
使用 PHP 7.4 中新增的 FFI 对 jieba-rs 进行了包装。
Requirement
PHP >= 7.4,并开启 FFI 扩展
Installation
You can install the package via composer:
Usage
API
Examples
see examples/example.php
Testing
Benchmark
对比 jukuball/jieba-php,循环 50 次对围城每行文字作为一个句子进行分词,分词算法都采用 HMM 模式。 | 名称 | 耗时 | 单次耗时 | 内存占用 | 内存峰值 |
---|---|---|---|---|---|
jukuball/jieba-php | 51.593 | 1.032 | 493.00MB | 515.03MB | |
binaryoung/jieba-php | 8.408 | 0.16816 | 10.00MB | 22.01MB | |
差值 | ↓513.59% | ↓513.59% | ↓4830.00% | ↓2240.20% |
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email me instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of jieba-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-ffi Version *
ext-ffi Version *
The package forever2077/jieba-php contains the following files
Loading the files please wait ....