zetaiota / func
This is php func tools
1.1.5
2020-05-27 03:40 UTC
Requires
- php: >=7.0.0
README
php Development Kit, years of work experience, packaging simple way to make development easier.
composer安装
composer require zetaiota/func
分词方法
$content = "北京大学生喝进口红酒,在北京大学生活区喝进口红酒"; Dict::participle($content); //参数说明:$content(分词内容) $participle_type(分词切割类型) $type(读取字典类型) //北京大学|生喝|进口|红酒|,|在|北京大学|生活区|喝|进口|红酒 //$arr 是一个数组 每个单元的结构[词语,词语位置,词性,这个词语是否包含在词典中] 这里只值列出了词语