...才对? Array ( [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] =>...
...才对? Array ( [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] =>...
...ult(s)) { while (cur != NULL) { printf("WORD: %.*s/%s (IDF = %4.2f)\n", cur->len, text+cur->off, cur->attr, cur->idf); cur = cur->next; } scws_free_result(res); } scws_free(s); }。 4,编译成功; 5,运行后结果如下: WORD: Hello/en (IDF = ...
...word] => 我 [off] => 0 [len] => 3 [idf] => 0 [attr] => un ) [1] => Array ( [word] => 是 [off] => 3 [len] => 3 [idf] => 0 [attr] => un ) [2] ...
老大,能把您的TF/IDF算法共享出来么?批量添加词库的时候真的很不方便啊,如果写个脚本调用你的[url=http://www.ftphp.com/scws/demo/get_tfidf.php]在线TF/IDF算法工具[/url],恐怕上万条请求你的服务器招架不住啊。。。 老大你的词库更...
...,很多词语都没有。我想自己扩充我的词库,但不知道TF/IDF如何获得。 通过你提过的新词生词的TF/IDF计算器(http://www.xunsearch.com/scws/demo/get_tfidf.php) 结果计算出来的大部分内容都是一样的值,而且也无法用于分词。 另外...
...,很多词语都没有。我想自己扩充我的词库,但不知道TF/IDF如何获得。 通过你提过的新词生词的TF/IDF计算器(http://www.xunsearch.com/scws/demo/get_tfidf.php) 结果计算出来的大部分内容都是一样的值,而且也无法用于分词。 另外...
...word] => 我 [off] => 0 [len] => 2 [idf] => 0 [attr] => un ) [1] => Array ( [word] => 是 [off] => 2 [len] => 2 [idf] => 0 [attr] => un ) [2] ...