搜索

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

1.scws加载词库和规则集失败,使用者为啥不知道呢?

更新时间:2010-12-09 22:12 t By lauxinz

...不准确。 其实在scws文档中有这么一句话: [i][b]注:xdict_t 和 rule_t 分别是词典和规则集的指针,可判断其是否为 NULL 来判断加载的成功与失败。[/b][/i] 调用函数 scws_add_dict() ,scws_set_rule()来加载词库和规则集, 这两个函数...

2.scws与多线程

更新时间:2010-12-07 23:12 t By lauxinz

...libscws,每一个线程都需要进行分词? typedef struct { xdict_t d; rule_t r; unsigned char *mblen; unsigned int mode; unsigned char *txt; int zis; int len; int off; int wend; scws_res_t res0; scws_res_t res1; word_t **wmap; struct scws_zchar *zmap; } scws_st...

3.问一个关于线程安全的问题

发布时间:2011-05-07 18:05 t By lauxinz

...T use two or more times in one line, Non-ThreadSafe */ word_t xdict_query(xdict_t xd, const char *key, int len); xdict_query() 不是线程安全的? 看代码xdict_query()是线程安全的,并没有使用全局变量和静态数据,只是返回值可能是指向一块动态内存,...

4.Libscws C API 使用说明

更新时间:2010-12-30 22:12 t By hightman

...cws_st 结构,不保证这类拷贝结果会有用。 typedef struct { xdict_t d; rule_t r; unsigned char *mblen; unsigned int mode; unsigned char *txt; int len; int off; scws_res_t res0; scws_res_t res1; word_t **wmap; struct scws_zchar *zmap; } scws_st, *scws_t; struct scws...

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