..., int yes); void scws_set_duality(scws_t s, int yes); diff -ur scws-1.2.1/phpext/php_scws.c scws-1.2.1.changed/phpext/php_scws.c --- scws-1.2.1/phpext/php_scws.c 2013-01-07 14:43:56.000000000 +0800 +++ scws-1.2.1.changed/phpext/php_scws.c 2013-07-03 10:38:55.288772732 +0800 @@ -111,6 +111,7 @@ PH...
运行安装说明里的c例子 [php]#include #include main() { scws_t s; scws_res_t res, cur; char *text = "Hello, 我名字叫李那曲是一个中国人, 我有时买Q币来玩, 我还听说过C#语言"; if (!(s = scws_new())) { printf("error, can't init the scws_t!\n"); ...
...:12;s:3:"idf";d:8.19999980926513671875;s:4:"attr";s:1:"n";}}} 我如何用php从中提取出分词结果,谢谢
...是一名中国的程序员"这句话,进行分词, 代码如下: [php] #include #include #include #include int main(int argc, char *argv[]) { scws_t s; scws_res_t res, cur; char *text;// = "Hello, 我名字叫李那曲是一个中国人, 我有时买Q...
... ./a.out Word: 上海市/ns (IDF = 7.82) [root@namenode-1 scws]# WINDOWS PHP测试结果是 上海市 上海 能这样子正常分开 对了mode的值都试过,没任何变化[hr] 这个不是BUG,看到你源码 #define SCWS_MULTI_NONE 0x00000 // nothing #define SCWS_MULTI_SHORT 0x0100...
... [/quote] 这是我的做测试的时候用的命令 [root@server67 php]# ps auxw | grep xs root 15274 0.0 0.0 4096 668 pts/0 S+ 16:09 0:00 grep xs root 21853 0.0 0.0 2184 652 ? S Sep17 0:04 xs-indexd: server root 21856 0.0 0.0 39536 1680 ? ...
...大。xunsearch 版本:xs-searchd: xunsearch/1.4.7-dev (search server) [php] PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 28942 root 18 3 152m 28m 1852 S 174.6 0.2 61:51.25 xs-searchd 28940 root 18 3 152m 28m 1888 S 128.4 0.2 45:21.77 xs-searchd 28...
... [/quote] 这是我的做测试的时候用的命令 [root@server67 php]# ps auxw | grep xs root 15274 0.0 0.0 4096 668 pts/0 S+ 16:09 0:00 grep xs root 21853 0.0 0.0 2184 652 ? S Sep17 0:04 xs-indexd: server root 21856 0.0 0.0 39536 1680 ? ...
[s]呵呵,观察了一天,“document xxxx not found”的问题看不到了[/s] 额,不是,还是有这个错误在log中:(
[quote='KnightE' pid='449' dateline='1326794968'] [s]呵呵,观察了一天,“document xxxx not found”的问题看不到了[/s] 额,不是,还是有这个错误在log中:( [/quote] 那还会有错误吗?是search还是index的log?