HM,您好,我目前使用自定义词库实现分词,但是通过scws_get_top5()方法获取数据的时候(字母+数字大于等于3个的时候也会返回)。求过滤方案。 $sh = scws_open(); scws_set_charset($sh, 'utf8'); scws_set_dict($sh, './dict.txt', SCWS_XDICT_TXT); scws_...
...dard, and when i compile it on OSI standard with vs9, it's appear many desprecat warning, but the lib can be compiled and test-case run ok:)
thanx for your reply, i compile the lib yestoday, it rely on php5.3.3 source like php.h,php_ini.h ect, so must i set php 5.3.3 main, ext, zend for the globle include directory, but last thing i cause is no config_w32.h in main, i got some help online, the config_w32.h file must be compile by myself...
[quote='hightman' pid='3626' dateline='1279100902'] 1. 多一个T是哪儿,我没看明白。 2. 你的错误是因为你用错误词了,48.php 是针对UTF-8的,而你调用了gbk的词典,把你的词典语句改为 dict.utf8.xdb 即可 3. dict_extra.txt 也必须是UTF-8编码 4. 删...
[quote='hightman' pid='3722' dateline='1364360180'] 你这个词典是在 etc/dict_user.txt 还是项目目录下的 data/app/dict_user.txt ? 如果是后者需要升级到 1.4.6-dev 才支持,前者必须在改词典后重启 xs-searchd [/quote] 我今天升级到1.4.6了,词典在etc/d...
...scws.c的代码做了如下修改, 在890行 if ((r1->flag & SCWS_ZRULE_PREFIX) && (i < (zlen - clen))) { /* prefix, check after (zmin~zmax) */ // 先检查 zmin 字内是否全部符合要求 // 再在 zmax 范围内取得符合要求的字 ...
...cur->word, cur->weight, cur->times, cur->attr); cur = cur->next; } scws_free_tops(top); scws_free(s);
... 尝试过进入/root/xunsearch-full-1.4.8/xunsearch-1.4.8 执行 ./configure --prefix=/usr/local/xunsearch --with-scws=/usr/local/xunsearch --with-libevent=/usr/local/xunsearch --with-xapian=/usr/local/xunsearch 仍然产生这个错误 ls -al /usr/local/xunsearch/include/scws -rw-r--r-- 1 root ...
...51' dateline='1377142375'] 项目名称不对吧,确定存在 ../app/torrentkittys.ini ? 如果不确定就把ini文件的路径打全! [/quote] 我是这样弄的 php的 safe_mode=On safe_mode_include_dir = /usr/local/xunsearch/sdk/php/lib/ 这样require './XS.php'; 会报错 Fa...
...jh project.default_charset = UTF-8 [id] type = id [name] type = title [create_time] type = numeric [enterprise_id] type = numeric [image_url] [img_type] [category] index = mixed [source] [source_icon_url] [from] type = numeric [buy_stat] type = numeric [sell_stat] type = numeric [collec...