fukuball / jieba-php

"結巴"中文分詞:做最好的 PHP 中文分詞、中文斷詞組件。 / "Jieba" (Chinese for "to stutter") Chinese text segmentation: built to be the best PHP Chinese word segmentation module.
http://jieba-php.fukuball.com
MIT License
1.32k stars 260 forks source link

未定义报错Posseg.php:268 #78

Open xiahe-debug opened 10 months ago

xiahe-debug commented 10 months ago

开发文档忽略了 allowPOS配置,调用 $words= JiebaAnalyse::extractTags($text, $top,['allowPOS'=>['ns', 'n', 'vn', 'v']]); 时候,提示Posseg 中的268行报错

image