搜索

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

131.1.1.2的 自定义字典无法使用

更新时间:2010-05-23 01:05 t By 逆雪寒

...式的定义 $so->add_dict(ini_get("scws.default.fpath") . '/dict.utf8.xdb'); $so->set_rule(ini_get('scws.default.fpath') . '/rules.utf8.ini'); 那么就分词正常. 这个是第一个问题. 第二个问题就是,定义自定义的词典. 看到说1.1.2 支持自定义的 txt 字典....

132.XSTokenizerScws::__construct

... define('SCWS_MULTI_ZALL', 8); } if (!defined('SCWS_XDICT_XDB')) { define('SCWS_XDICT_XDB', 1); define('SCWS_XDICT_MEM', 2); define('SCWS_XDICT_TXT', 4); } } if ($arg !== null && $arg !== '') { $this->setMulti($arg); }} 构...

133.PSCWS4使用问题

更新时间:2010-10-21 17:10 t By hnmazda

HI,hightman $cws = new PSCWS4('utf8'); $cws->set_dict('etc/dict.utf8.xdb'); $cws->set_rule('etc/rules.utf8.ini'); $ret = array(); $ret = $cws->get_tops(10,'r,v,p'); echo "No.\tWord\t\t\tAttr\tTimes\tRank\n------------------------------------------------------\n"; $i = 1; foreach ($ret as $...

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

更新时间:2012-03-29 15:03 t By gnhao

$so->set_dict('D:\php\scws\etc\dict.utf8.xdb'); $so->set_rule('D:\php\scws\etc\rules.utf8.ini'); $so->add_dict('D:\php\www\htdocs\dict_extra.txt', SCWS_XDICT_TXT); hm你好。 上边的代码的确可以自定义词库,现在的scws能否直接把词加入核心词库了啊?比如直接加...

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

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

...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"); for(i = 0; i < 1000000; i++){ scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(s)) ...

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

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

...n/mkdir -p "/usr/local/xunsearch/etc" /usr/bin/install -c -m 644 'etc/py.xdb' '/usr/local/xunsearch/etc/py.xdb' test -z "/usr/local/xunsearch/etc" || /bin/mkdir -p "/usr/local/xunsearch/etc" Ignore exists custom data file 'etc/dict_user.txt' Ignore exists custom data file 'etc/stopwords.txt' ...

137.SCWS-1.1.9 没法分中文?

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

... 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) { printf("Word: %.*s...

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

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

... 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, cur->times, cur->att...

139.关于扩展词库的问题

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

... = 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_ignore...

140.cygwin编译出错

更新时间:2011-08-04 20:08 t By kpax

...ll charset.lo crc32.lo pool.lo scws.lo xdict.lo darray.lo rule.lo lock.lo xdb.lo xtree.lo /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(libcmain.o):(.text+0xa9): undefined reference to `_WinMain@16' collect2: ld returned 1 exit status make[2]: *** [libscws.la] Error 1 make[2]: Leaving ...

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