搜索

大约有 50 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0997秒)

1.RE: scws_has_word的逻辑问题

发布时间:2010-08-02 11:08 t By backluck

...set. (cnt -> return_value) off = s->off; cnt = s->off = 0; while (!cnt && (cur = res = scws_get_result(s)) != NULL) { do { /* check attribute filter */ if (at != NULL) { if ((xmode == SCWS_N...

2.scws_has_word的逻辑问题

更新时间:2010-07-29 14:07 t By backluck

...set. (cnt -> return_value) off = s->off; cnt = s->off = 0; while (!cnt && (cur = res = scws_get_result(s)) != NULL) { do { /* check attribute filter */ if (at != NULL) { if ((xmode == SCWS_N...

3.为什么程序消耗的内存越来越大

更新时间:2010-03-02 17:03 t By backluck

... < 1000000; i++){ scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(s)) { while (cur != NULL) { printf("Word: %.*s/%s (IDF = %4.2f)\n", cur->len, text+cur->off, cur->attr, cur->id...

4.SCWS-1.1.9 没法分中文?

发布时间:2012-01-07 12:01 t By hejone

...local/scws/etc/rules.ini"); scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(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_...

5.libscws的问题

发布时间:2009-12-02 16:12 t By nftw

...tc/rules.ini"); scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(s)) { while (cur) { printf("Word: %.*s/%s (IDF = %4.2f)\n", cur->len, text+cur->off, cur->attr, cur->idf); ...

6.scws_set_multi复式分割无效

更新时间:2011-11-03 17:11 t By xjtdy888

...ini"); scws_set_multi(s , 1); scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(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...

7.RE: 第四版遇到()和中英文混合分词的问题。

发布时间:2009-06-14 21:06 t By hightman

楼上你的情况是因为你对API使用不正确, scws_get_result 应该循环调用 while ($words = scws_get_result($sh)) { foreach ($words as $word) { print_r($word); } } 此外, 繁体词库很不完善, 缺词太多而且有一些词也不正确

8.RE: 布尔搜索问题

发布时间:2012-01-09 18:01 t By a114708367

FastCGI sent in stderr: "Data/Name too long" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: www.xxx.xxx, request: "GET /search?q=source%3Aqiyi+type%3Avideo+tag%3A%E7%94%B5%E5%BD%B1+OR+tag%3A%E6%83%8A %E6%82%9A+OR+tag%3A%E7%8A%AF%E7%BD%AA+OR+tag%3A%E7%88%B1%E6%83...

9.重启xunsearch

更新时间:2012-03-27 10:03 t By bigxu

... -eq 0 ]; then echo 1 else echo 0 fi } while [ true ] do res=$(get_check_per $1) while [ $try_times -gt 0 ] do try_times=$(expr $try_times - 1 ) if [[ $res == "0" ]]; then $ctl_path fastrestart echo $(dat...

10.RE:1262

发布时间:2008-01-14 21:01 t By xueron

...t_ignore(1); $scws->set_multi(1); my $s = shift; $scws->send_text($s); while (my $r = $scws->get_result()) { foreach (@$r) { print $_->{word}, " "; } } print "\n"; [/code] [code] $perl test.pl 核心提示:14日下午,中国总理温家宝与来访的印度总理辛...

12345
  • 时间不限
  • 按相关性排序