Download the PHP package itplato/phpanalysis without Composer
On this page you can find all versions of the php package itplato/phpanalysis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download itplato/phpanalysis
More information about itplato/phpanalysis
Files in itplato/phpanalysis
Download itplato/phpanalysis
More information about itplato/phpanalysis
Files in itplato/phpanalysis
Vendor itplato
Package phpanalysis
Short Description php chinese analysis, It's component-free word segmentation in language-php
License MIT
Package phpanalysis
Short Description php chinese analysis, It's component-free word segmentation in language-php
License MIT
Please rate this library. Is it a good library?
Informations about the package phpanalysis
PHPAnalysis php中文无组件分词类
一、最新变化
1、修改源文件结构支持composer 2、把切分同时优化的操作模式改为独立步骤操作(即是粗分、切分、优化三步完全独立) 3、修改类成员调用支持自身引用,即是 xx()->xx()->xx() 模式
二、一个基本的分词操作
use Tutu\PhpAnalysis; header('content-type:text/html;charset=utf-8'); $result_str = PhpAnalysis::Instance() ->SetSource("composer的出现真是让人们眼前一亮,web开发从此变成了一件很『好玩』的事情。") ->Delimiter(' ') ->ExecSimpleAnalysis() ->ExecDeepAnalysis() ->Optimize( true ); echo $result_str; 如果用默认参数,上面也可以简化为: $result_str = PhpAnalysis::Instance() ->SetSource("composer的出现真是让人们眼前一亮,web开发从此变成了一件很『好玩』的事情。") ->Exec();
三、常用设置及方法
- Instance( $force_init = false )
- SetOptions($unit_special_word=true, $unit_single_word=false, $max_split=false, $high_freq_priority=false, $optimize=true)
- SetSource($source, $source_encoding = 'utf-8', $target_encoding='utf-8')
- Delimiter( $str )
- Exec( $return = true )
- LoadDict( $main_dic_file = '' )
- AssistBuildDict( $source_file, $target_file='' )
- AssistExportDict( $target_file, $dicfile = '' )
- AssistGetCompare()
- AssistGetDeep()
- AssistGetSimple( $string=true )
- GetNewWords( $is_array=false )
- GetResult()
- GetResultProperty()
- GetTags( $num = 10, $with_rank = false )
All versions of phpanalysis with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package itplato/phpanalysis contains the following files
Loading the files please wait ....