...= scws_get_tops(s, 10, NULL); while (cur != NULL) { printf("WORD: %s, weight:%.2f, times:%d, attr:%.2s\n", cur->word, cur->weight, cur->times, cur->attr); cur = cur->next; } scws_free_tops(top); scws_free(s); [/quote] 实在是太好用,太牛B了。:D
锅炉的用法上 No. WordString Attr Weight(times) ------------------------------------------------- 01. 法上 nz 14.14(1) 02. 锅炉 n 5.86(1) 分词也不对的[hr] 下载的rules.ini里没有v+v=10这个东西
scws.h也有问题 struct scws_topword { char *word; float weight; short times; char attr[3];//原来是2 scws_top_t next; }; 应该跟以下结构一致。 struct scws_result { int off; float idf; unsigned char len; char attr[3]; scws_res_t ne...
...语 一轮 复习 达标 测 试卷 No. WordString Attr Weight(times) ------------------------------------------------- 01. 一轮 nz 9.33(1) 02. 年高 v 8.56(1) 03. 英语 nz 7.28(1) 04. 达标 ...
... ( [word] => 奥迪 [times] => 1 [weight] => 9.76000022888 [attr] => nz融 ) attr是什么呢?而且,为什么是乱码。[hr] 对了斑竹,xdb可以修改么,我想向里面添加新词。
...面两行, top = (scws_top_t) malloc(sizeof(struct scws_topword)); top->weight = cur->idf; 182行的下面两行 res = (scws_res_t) malloc(sizeof(struct scws_result)); \ res->off = o; 234行的这两行 dst = malloc(len+1); memcpy(dst, src, len);
...以函数调用访问搜索结果元数据, 支持: docid, rank, percent, weight, ccount
... [ccount] => 0 [percent] => 75 [weight] => 2.3821949958801 ) ) [1] => XSDocument Object 有文档docid, 但是其他内容都没有了, 请大家帮忙看看
...ype = string index = none [album_name] type = string index = both weight = 2 [gmt_create] type = numeric index = none [pass_date] type = string index = none
...ring tokenizer = full index = self weight = 5 [tag] type = title [chrono] type = numeric index = none tokenizer = none 因为普通的XS:getExpandedQuery() 是无法完成...