...f = log($tf); $idf = log(5000000000/$count); //if ($tf > 13) $idf *= 1.4; return array($tf, $idf); } 有几个问题: 1、当一个词在baidu搜索中找到小于1000篇文章包含该词时,为什么要重新计算count,“21000 - $count * 18” 其中21000是...
...[len] => 2 [idf] => 0 [attr] => un ) [2] => Array ( [word] => 腑 [off] => 13 [len] => 2 [idf] => 0 [attr] => un ) [3] => Array ( [word] => 鍥 [off] => 15 [len] => 2 [idf] => 0 [attr] => un ) [4] => Array ( [word] => 戒 [off] => 17 [len] => 2 [idf] => 0 [attr] => un ) [5] => Array ( [word] => 汉 ...
...[len] => 2 [idf] => 0 [attr] => un ) [2] => Array ( [word] => 腑 [off] => 13 [len] => 2 [idf] => 0 [attr] => un ) [3] => Array ( [word] => 鍥 [off] => 15 [len] => 2 [idf] => 0 [attr] => un ) [4] => Array ( [word] => 戒 [off] => 17 [len] => 2 [idf] => 0 [attr] => un ) [5] => Array ( [word] => 汉 ...
...-----------------+--------------------------------+ | PHP 版本 | 5.3.6-13ub | XS(core) | PHP 5.2.0 或更高版本是必须的。 | | SPL 扩展 | OK | XS(core) | SPL 扩展用于自动加载和对象戏法 | | PCRE 扩展 | OK | XSDocument, XSS...
...BURST:2) 2012-03-30 09:40:33 worker1[10982] [sock:8] add new task (CONN:0x13e5140, SPARE:6, TOTAL:6) 2012-03-30 09:40:33 worker1[10982] [sock:7] quit, closed by client 2012-03-30 09:40:33 ~master[7734] caught SIGINT, shutdown gracefully 2012-03-30 09:40:33 ~master[7734] broadcast exit signal[2] ...
...bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ root 4232 0.0 0.1 191392 26528 ? S May21 0:13 xs-searchd: master root 24930 0.0 0.1 252856 26480 ? Sl 19:42 0:00 xs-searchd: worker[1] ...
...新测试结果: 硬件信息: R410 至强四核E5620 2.4GHz*2/4G*4 1333MHz/600G*2/SAS-15Krpm Raid1 导入索引DEBUG信息: [code] 1998001, channelId=11, CostTime=2895.08, UpdateIndexTime=1226.33, UpdateProductTime=2742.26, ProductCount=10000, ProcessCount=2000000.00, MemoryUsage=46063.0...
..., {EPOLLIN, {u32=0, u64=0}}) = 0 time(NULL) = 1329922500 epoll_wait(1, {{EPOLLIN, {u32=0, u64=0}}}, 32, 20000) = 1 clock_gettime(CLOCK_MONOTONIC, {223655, 160187730}) = 0 epoll_ctl(1, EPOLL_CTL_DEL, 0, {EPOLLIN, {u32=0, u64=0}}) = 0 accept(0, 0xbfe5c418, [16]) ...
...s/scws.c scws-1.2.1.changed/libscws/scws.c --- scws-1.2.1/libscws/scws.c 2013-01-11 10:39:28.000000000 +0800 +++ scws-1.2.1.changed/libscws/scws.c 2013-07-03 10:38:49.409846632 +0800 @@ -60,6 +60,9 @@ s->mblen = charset_table_get(NULL); s->off = s->len = 0; s->wend = -1; + + /* set default, s...
...d... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for scws support... yes, shared checking for scws.h... yes, found in /usr/local/scws checking for scws_new in -lscws... no configure...