搜索

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

61.VS2012编译失败,求教

更新时间:2013-04-26 14:04 t By tzyux

...ypj\scws\libscws\xtree.c(304): warning C4028: 形参 2 与声明不同 1> xdict.c 1>f:\mypj\scws\libscws\xdict.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 1>f:\mypj\scws\libscws\xdict.c(100): warnin...

62.自定义词库用不了。非常不解啊。。

发布时间:2011-10-21 16:10 t By ci169

...dict.utf8.xdb'); if($this -> so->add_dict('mydict_utf8.txt', SCWS_XDICT_TXT)) { echo 'ok'; } else { echo 'no'; } $this -> so->set_rule('rules.utf8.ini'); } function word_list($text) { $time_start = $this -> get_microtime(); $this -> so->send_text...

63.RE: 1.1.2的 自定义字典无法使用

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

...ath") . '/dict.utf8.xdb'); $so->add_dict("/usr/myapp/dict_extra.txt",SCWS_XDICT_TXT); $so->set_rule(ini_get('scws.default.fpath') . '/rules.utf8.ini'); // $so->set_duality(0); $so->set_ignore(0); $so->set_multi(0); 就是不行. 我也怀疑是词库加不上的问题.这个问题太奇...

64.libscws的问题

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

...i(s, 1); scws_set_dict(s, "/usr/local/etc/dict_chs_gbk.xdb", SCWS_XDICT_MEM); scws_set_rule(s, "/usr/local/etc/rules.ini"); scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(s)) { while (cur) { ...

65.强烈建议支持词库里的词可以是纯英文单词

更新时间:2011-04-24 01:04 t By lauxinz

...trncmp(a,"nz",2) == 0) { \ word_t w; \ w = xdict_query(s->d, s->txt + o, l); \ if(w == NULL) \ strncpy(res->attr, a, 2); \ else { \ strncpy(res->attr,w->attr,2); \ if (w->flag & SCWS_WORD_MALLOCED) \ free(w); \ } \ } else { \ ...

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

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

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

67.scws_set_multi复式分割无效

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

...harset(s, "utf-8"); scws_set_dict(s, "/usr/local/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_set_rule(s, "/usr/local/etc/rules.utf8.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 ...

68.使用SCWS的libscws C源码,测试分词不成功

发布时间:2014-01-02 18:01 t By banderuilq

...(s, "utf8"); scws_set_dict(s, "/usr/local/scws/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_set_rule(s, "/usr/local/scws/etc/rules.utf8.ini"); scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(s)) { while (cur != NULL) { printf("WORD: %.*s/%s (I...

69.RE: 怎样才能 字母数字汉字组合 按照词典分成一个词语呢?

更新时间:2013-07-03 16:07 t By shuyinglee

...ws/scws.h 2013-07-03 10:38:52.368809435 +0800 @@ -17,6 +17,7 @@ #include "xdict.h" #define SCWS_IGN_SYMBOL 0x01 +#define SCWS_USE_RULE 0x02 // shuying.lee adds it //#define SCWS_SEG_MULTI 0x02 //#define SCWS_XDB_USAGE 0x04 #define SCWS_DEBUG 0x08 @@ -97,6 +98,7 @@ /* set ignore symbo...

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