...东西。。试试。。。 然后。。 $words = scws_get_words($sh,'~un,nr'); 随便找一段文字,来分词 词性除了un和nr之外,就剩不下中文字了。。 。。 比如PHP简易分词第四版在线演示中的那段文字, 本机测试结果是这样: 陈凯歌/nr...
... ( [0] => Array ( [word] => 鎴 [off] => 0 [len] => 2 [idf] => 0 [attr] => un ) [1] => Array ( [word] => 戞 [off] => 2 [len] => 2 [idf] => 0 [attr] => un ) [2] => Array ( [word] => 槸 [off] => 4 [len] => 2 [idf] => 0 [attr] => un ) [3] => Array ( [word] => 涓 [off] => 6 [len] => 2 [idf] => 0 [att...
... ( [0] => Array ( [word] => 鎴 [off] => 0 [len] => 2 [idf] => 0 [attr] => un ) [1] => Array ( [word] => 戞 [off] => 2 [len] => 2 [idf] => 0 [attr] => un ) [2] => Array ( [word] => 槸 [off] => 4 [len] => 2 [idf] => 0 [attr] => un ) [3] => Array ( [word] => 涓 [off] => 6 [len] => 2 [idf] => 0 [att...
...功; 5,运行后结果如下: WORD: Hello/en (IDF = 4.02) WORD: ,/un (IDF = 0.00) WORD: 我/un (IDF = 0.00) WORD: 名/un (IDF = 0.00) WORD: 字/un (IDF = 0.00) WORD: ?un (IDF = 0.00) WORD: 欣/un (IDF = 0.00) WORD: 钅?un (IDF = 0.00) WORD: 曲/un (IDF = 0.00) WORD: 是/un (IDF = 0....
...> 0 [len] => 3 [idf] => 0 [attr] => un ) [1] => Array ( [word] => 是 [off] => 3 [len] => 3 [idf] => 0 [attr] => un ) [2] => Array ( ...
...ule.utf8.ini时,得到如下结果 情歌/n 接龙/n 大/a 串烧/v ,/un 情人节/t 好/a 礼/n 多多/z 武松/nr 杀/v 嫂/ng 雕塑/n 是/v 艺术/n ,/un 还是/n 恶俗/n ?/un 大家/r 怎么/r 看/v 的/uj ?/un 当加入rule.utf8.ini时,则是如下结果 情歌 /n 接 /v 龙...
...> 0 [len] => 2 [idf] => 0 [attr] => un ) [1] => Array ( [word] => 是 [off] => 2 [len] => 2 [idf] => 0 [attr] => un ) [2] => Array ( ...
...> 0 [len] => 2 [idf] => 0 [attr] => un ) [1] => Array ( [word] => 是 [off] => 2 [len] => 2 [idf] => 0 [attr] => un ) [2] => Array ( ...
...。 例如将“乒乓球拍卖完了”分词后结果为: WORD: 乒/un (IDF = 0.00) WORD: 乓/un (IDF = 0.00) WORD: 球/un (IDF = 0.00) WORD: 拍/un (IDF = 0.00) WORD: 卖/un (IDF = 0.00) WORD: 完/un (IDF = 0.00) WORD: 了/un (IDF = 0.00) 请问:scws分词算法在X86处理器(CP...