搜索

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

21.SCWS不支持英文和中英文混合分词吗?

更新时间:2010-08-24 20:08 t By fuhehe

...0]=> array(5) { ["word"]=> string(7) "GMhello" ["off"]=> int(0) ["len"]=> int(7) ["idf"]=> float(4.86477518082) ["attr"]=> string(2) "en" } } "GM"和"hello"被合并了且"attr"变成了"en"而不是定义的"*",而"hello指导员"被拆分了。 实际...

22.scws_has_word的逻辑问题

更新时间:2010-07-29 14:07 t By backluck

[quote]int scws_has_word(scws_t s, char *xattr) { int off, cnt, xmode = SCWS_NA; scws_res_t res, cur; char *word; word_attr *at = NULL; if (!s || !s->txt) return 0; __PARSE_XATTR__; // save the offset. (cnt -> return_value) off = s->off; ...

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

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

#include #include int main() { scws_t s; scws_res_t res, cur; char *text = "Hello, 我名字叫李那曲是一个中国人, 我有时买Q币来玩, 我还听说过C#语言"; int i; if (!(s = scws_new())) { printf("error, can't init the scws_t!\n"); ...

24.和Greta一起使用时,scws_free_tops出错

发布时间:2013-06-15 11:06 t By lyjkensou

...代码 [code]void scws_free_tops(scws_top_t tops) { scws_top_t cur; int len; int b; while ((cur = tops) != NULL) { tops = cur->next; if (cur->word) { OutputDebugStringA(cur->word);//能正常输出能容 len = strlen(cur->word);//长度都正确 b = ('\0'==cur->word[...

25.RE: scws_has_word的逻辑问题

发布时间:2010-08-02 11:08 t By backluck

[quote='backluck' pid='3650' dateline='1280380226'] [quote]int scws_has_word(scws_t s, char *xattr) { int off, cnt, xmode = SCWS_NA; scws_res_t res, cur; char *word; word_attr *at = NULL; if (!s || !s->txt) return 0; __PARSE_XATTR__; // save th...

26.scws_set_multi()函数的一个小问题....

发布时间:2010-12-06 22:12 t By lauxinz

void scws_set_multi(scws_t s, int mode); 描述:设定分词执行时是否执行针对长词复合切分。(例如:中国人->中国+人+中国人)。参数 mode 表示复合分词法的级别,取值为 1 ~ 15。mode 设定值,1~15。[b]按位与[/b]的 1|2|4|8 依次表示 短词|二...

27.RE: 时间戳保存失效

发布时间:2012-12-21 20:12 t By 973432436

保存为字符串就可以啦,到时侯php 使用(int)强制转换下就可以啦!

28.RE: scws与多线程

发布时间:2010-12-08 10:12 t By lauxinz

谢谢回复。 另外scws结构体中:unsigned char *mblen; unsigned int mode;这两个成员也应该是可以多个线程共用的。

29.RE: 留下评论出现错误

发布时间:2014-05-15 17:05 t By bigxu

修正了。mysql5.6了int字段得有默认值。

30.RE:1243

发布时间:2007-11-09 22:11 t By sanix

...op_t next; }; 应该跟以下结构一致。 struct scws_result { int off; float idf; unsigned char len; char attr[3]; scws_res_t next; };

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