搜索

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

61.fedroa 上编译安装 scws 之后出现分词不准确

更新时间:2010-11-30 00:11 t By smartly

...ww.ftphp.com/scws Directive Local Value Master Value scws.default.charset utf8 utf8 scws.default.fpath /usr/local/scws/etc /usr/local/scws/etc[/code]

62.RE: 冒昧的问一下——怎么用tf和idf来计算权重?

发布时间:2012-02-22 18:02 t By vanni

...漾 3 舒护 4 活泉水 # scws -A -d /hp/opt/scws/dict/default.utf8.xdb:/home/vanni/scws/mydict.txt -c utf8 "相宜本草洗面奶和雅漾舒护活泉水哪个好" 相宜/a 本草/nz 洗面奶/nz 和/c 雅漾/@ 舒护/@ 活泉水/@ 哪个/r 好/a 雅漾 、舒护、 活泉水 都...

63.XSSearch::getCorrectedQuery

...lse) { return $ret; } $buf = XS::convert($query, 'UTF-8', $this->_charset); $cmd = array('cmd' => XS_CMD_QUERY_GET_CORRECTED, 'buf' => $buf); $res = $this->execCommand($cmd, XS_CMD_OK_QUERY_CORRECTED); if ($res->buf !== '') { $ret = explode("\...

64.数据导入 乱码问题

发布时间:2011-11-25 17:11 t By vist2007

xunsearch 1.1.0 数据库mysql 字符集 utf8 配置文件如下 project.name = entry project.default_charset = UTF-8 server.index = 10.1.20.51:8383 server.search = 10.1.20.51:8384 [tblog_entry_id] type = id [content] type = string index = both [user_id] type = numeric index = s...

65.发一个稳定复现的问题

更新时间:2014-03-03 15:03 t By getwe

... scws_set_charset(s,"utf8"); scws_set_dict(s,argv[1],SCWS_XDICT_XDB); scws_set_rule(s,argv[2]); text = argv[3]; ...

66.[特别发布] 纯PHP编写的xdb词典导入导出工具!!

发布时间:2009-07-01 17:07 t By hightman

... 扩展) 默认是处理 gbk 编码的文本,如果你的文本是 utf8,则需要修改该程序的第一行,把 define('IS_UTF8_TXT', false); 改为 true php make_xdb_file.php [导入的文本文件] --- 关于文本文件的说明,每行一条记录,#开头表示...

67.XSSearch::getExpandedQuery

...x(1, min(20, intval($limit))); try { $buf = XS::convert($query, 'UTF-8', $this->_charset); $cmd = array('cmd' => XS_CMD_QUERY_GET_EXPANDED, 'arg1' => $limit, 'buf' => $buf); $res = $this->execCommand($cmd, XS_CMD_OK_RESULT_BEGIN); // echo "Raw Query: " . $res->buf . "\...

68.[特别提供] 纯PHP编写的sqlite词典工具!!

更新时间:2010-07-08 22:07 t By limaoxiang

...36]本网站的PHP的XDB导入导出工具[/url]作者提供了一个繁体UTF8的,一定要转换为GBK) 注意:: 本程序只支持GBK!!我没有用mbstring进行代码转换的! 如果你是utf8,自己修改程序去吧,也不复杂(utf8的一个汉字是3个字符,记...

69.XSSearch::addRange

...vno = $this->xs->getField($field)->vno; $from = XS::convert($from, 'UTF-8', $this->_charset); $to = XS::convert($to, 'UTF-8', $this->_charset); if ($from === null) { $cmd = new XSCommand(XS_CMD_QUERY_VALCMP, XS_CMD_QUERY_OP_FILTER, $vno, $to, chr(XS_CMD_VALCMP_LE)); ...

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

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

...; char *text = "测试说明文字"; 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...

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