搜索

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

71.【已解决】【感谢hightman帅哥的耐心解答,我是个人站长,要是我做起来了一定赞助您撒,

更新时间:2010-07-15 01:07 t By sulwan

...一个T吧,那个代码反正我试验是错误的! [php] $cws->add_dict(ini_get("scws.default.fpath").'/dict.xdb'); $cws->add_dict("./dict_extra.txt", SCWS_XDICT_TXT); [/php] 在说说词分词测试: 我的网址:http://sjz.haojishu.com/tools/222.php 官方网址:http://www.ft...

72.RE:1265

发布时间:2008-09-09 00:09 t By terry39

...PERTIES_EX }; /* }}} */ [/code] 编译后 在php代码中指定 dict字典和rule规则文件就可以了 $cws->set_dict('/usr/local/scws/etc/dict_chs_utf8.xdb'); $cws->set_rule('/usr/local/scws/etc/rules.utf8.ini');

73.安装报错,谁能帮忙看看

发布时间:2014-05-08 17:05 t By solomon

.../usr/local/xunsearch [Y/n]y Checking scws ... 1.2.3-dev Checking scws dict ... ok Checking libuuid ... yes: /usr/local/xunsearch Checking xapian-core-scws ... 1.2.15 Checking libevent ... 2.0.21-stable Extracting xunsearch package (1.4.8) ... Configuring xunsearch ... Compiling & installin...

74.SCWS-1.1.9 没法分中文?

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

...cws_t!\n"); exit(-1); } scws_set_charset(s, "gbk"); scws_set_dict(s, "/usr/local/scws/etc/dict.xdb", SCWS_XDICT_XDB); scws_set_rule(s, "/usr/local/scws/etc/rules.ini"); scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(s)) { while (cur != NULL...

75.RE: Linux C API scws_get_tops的调用方法

更新时间:2011-07-30 11:07 t By hightman

...试说明文字"; s = scws_new(); scws_set_charset(s, "utf8"); scws_set_dict(s, "/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_send_text(s, text, strlen(text)); cur = top = scws_get_tops(s, 10, NULL); while (cur != NULL) { printf("WORD: %s, weight:%.2f, times:%d, attr:%.2s\n", cur->word, cur->weight...

76.RE: [2011] SCWS-1.1.8 发布,提供VC9的php_scws.dll、支持自定义词库

更新时间:2011-09-01 11:09 t By wodeln

...记说了,我用的编码都是utf8 还有就是如果我用 $so->set_dict('C:/Program Files/scws/etc/dict.xdb'); $so->set_rule('C:/Program Files/scws/etc/rules.utf8.ini'); 就会有警告: Warning: SimpleCWS::set_dict() [function.SimpleCWS-set-dict]: open_basedir restriction in effect. Fil...

77.关于扩展词库的问题

发布时间:2012-12-10 15:12 t By timeage

... $cws = scws_new(); $cws->set_charset('utf8'); $cws->add_dict(XDB_PATH);//系统默认词库文件地址(xdb格式)[/quote] //$cws->add_dict(XDICT_PATH, SCWS_XDICT_TXT);//我的自定义词库地址 (txt格式) $cws->set_duality(true); $cws->set_i...

78.RE: Linux C API scws_get_tops的调用方法

发布时间:2011-07-30 16:07 t By lankelan

...说明文字"; s = scws_new(); scws_set_charset(s, "utf8"); scws_set_dict(s, "/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_send_text(s, text, strlen(text)); cur = top = scws_get_tops(s, 10, NULL); while (cur != NULL) { printf("WORD: %s, weight:%.2f, times:%d, attr:%.2s\n", cur->word, cur->...

79.RE:1262

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

[code] use Text::Scws; my $scws = Text::Scws->new; $scws->set_dict('dict.xdb'); $scws->set_rule('rule.ini'); $scws->set_ignore(1); $scws->set_multi(1); my $s = shift; $scws->send_text($s); while (my $r = $scws->get_result()) { foreach (@$r) { print $_->{word}, " "; } } ...

80.RE: [2012] SCWS-1.2.0 发布,BSD协议、支持自定义词库、PHP5.4

更新时间:2012-03-31 11:03 t By hightman

txt词库其实也是转换成XDB再调用的,不用担心性能。 你合并词典很简单啊,把 dict.utf8.xdb 导出来嘛

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