搜索

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

11.XSTokenizerScws

...addDict() 方法 public XSTokenizerScws addDict(string $fpath, int $mode=NULL) $fpath string 服务端的词典路径 $mode int 词典类型, 常量: SCWS_XDICT_XDB|SCWS_XDICT_TXT|SCWS_XDICT_MEM {return} XSTokenizerScws 返回对象本身以支持串接操作 源...

12.RE: scws与多线程

发布时间:2010-12-08 14:12 t By hightman

...charset.c 中定义的全局变量,应当已经是共用的了; 至于 mode 看需要吧,只是一个整型 ,如果你在不同线程中切分建议各自用一个 mode ,除非你自己能确定它们的切词设置是共用的(主要用于保存切词中那些是否忽略符号,是否...

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

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

...指针了。 [code]int scws_add_dict(scws_t s, const char *fpath, int mode) { xdict_t xx; if (mode & SCWS_XDICT_SET) { xdict_close(s->d); mode ^= SCWS_XDICT_SET; s->d = NULL; } xx = s->d; s->d = xdict_add(s->d, fpath, mode, s->mblen); return (xx == s->d ? -1 : 0); } [/...

14.RE: 关于词典中的词性标注

发布时间:2009-08-06 08:08 t By akira

...謝您的建議 最初合併字典後,用較長的內文 + IN BOOLEAN MODE 搜尋,會有 0 筆資料的情況,後來反覆縮短原文查詢發現,多數與 att = un 有關聯,只是不敢武斷就是了。 本週一,狠心將 un 完全調成 a (形容词),同時完全移除只有...

15.[patch] php-scws 扩展在 5.4.x 下的编译兼容补丁

发布时间:2012-03-05 11:03 t By hightman

...编译通过。 刚看了一下,因为 5.4.x 起 php 移除了 safe_mode 导致一些代码错误不通过编译,简单修改补丁如下,请大家先手动修改一下,稍后 scws-1.1.10 发布时会同步解决,并推出 5.4 的 win32 dll 文件。 [code] Index: php_scws.c ...

16.好消息,scws-0.0.1 pre 版发布!!

发布时间:2007-06-09 11:06 t By hightman

...*/ char *fmap; /* file content image by mmap (read only) */ + int mode; /* xdb_open for write or read-only */ } xdb_st, *xdb_t; /* xdb: open the db, mode = r|w|n */ *** ../../dist/scws-0.0.1-pre/libscws/xdb.c Tue Jun 5 12:19:46 2007 --- xdb.c Sat Jun 9 13:49:40 2007 ******...

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

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

...s it */ + scws_use_rule(s, 1); return s; } @@ -141,6 +144,16 @@ s->mode &= ~SCWS_IGN_SYMBOL; } +/* shuying.lee adds it */ +void scws_use_rule(scws_t s, int yes) +{ + if (yes == SCWS_YEA) + s->mode |= SCWS_USE_RULE; + + if (yes == SCWS_NA) + s->mode &= ~SCWS_USE_RULE; +} + void scws_set...

18.scws与多线程

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

... 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, *scws_t; scws结构体和每一次分词文本有关,...

19.分词时出现堆栈溢出错误

更新时间:2013-04-10 10:04 t By swish

... the dict/rules */ scws_t __declspec(dllexport)scws_fork(scws_t s); /* mode = SCWS_XDICT_XDB | SCWS_XDICT_MEM | SCWS_XDICT_TXT */ int __declspec(dllexport) scws_add_dict(scws_t s, const char *fpath, int mode); int __declspec(dllexport) scws_set_dict(scws_t s, const char *fpath, int mode); voi...

20.RE: [2010] SCWS-1.1.3 发布,支持文本词典实现自定义词库啦!!

更新时间:2010-11-13 10:11 t By snakeyasin

...lor]--[/size] 1. [libscws] scws_set_dict(scws_t s, const char *fpath, int mode); scws_add_dict(scws_t s, const char *fpath, int mode); scws_set_dict 为原有功能,scws_add_dict 是新增功能,2者功能相当接近,只是 scws_set_dict 会把 scws handler 现存的词库表 清...

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