...scws_t s); /* fork instance for multi-threaded usage, but they shared 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...
...目录下或者调用/usr/local/scws/etc/下的词库,都得到scws_set_dict(): supplied argument is not a valid scws handler resource。这是我php设置寻址有问题,还是scws_set_dict()调词库需要什么权限或特定路径。 问题3的分词结果是: Array ( [0] => A...
...s/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 symbol...