搜索

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

31.求救PSCWS4问题

发布时间:2010-07-21 10:07 t By FG2008

...应邀到美国与太空总署官员开会"; $pscws->send_text($text); while ($some = $pscws->get_result()) { foreach ($some as $word) { echo $word['word'].'=>'.$word['attr'].''; } flush(); } $pscws->close(); ?>[/php] 网页上的显示结果却是: 航天=>nr ...

32.RE: 报告一个内存泄露bug,1.1.6版本

发布时间:2011-05-08 00:05 t By hightman

... *************** *** 1397,1402 **** --- 1398,1405 ---- while (!cnt && (cur = cur->next) != NULL); scws_free_result(res); } + if (at != NULL) + free(at); s->off = off; return cnt; } *************** *** 1464,147...

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

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

..._TXT); $so->set_ignore(true); $so->send_text("GMhello指导员"); echo ''; while ($tmp = $so->get_result()) { var_dump($tmp); } $so->close(); 在words.txt只定义如下内容 GM 1.0 1.0 * hello指导员 1.0 1.0 * 而输出结果为: array(1) { [0]=> array(5) { ["word"]=> string(7) ...

34.XSSearch::getExpandedQuery

...ho "Raw Query: " . $res->buf . "\n"; // get result documents while (true) { $res = $this->getRespond(); if ($res->cmd == XS_CMD_SEARCH_RESULT_FIELD) { $ret[] = XS::convert($res->buf, $this->_charset, 'UTF-8'); } elseif ($res->cmd == XS_CM...

35.为什么我更新的索引会没有数据呢?

更新时间:2012-09-28 10:09 t By zspoplar

...lect id,title,time,sid,content,key from learn limit 4429 offset 3000"); while($r=mysql_fetch_array($result)){ $a["id"]=$r['id']; $a["title"]=$r['title']; $a["time"]=$r['time']; $a["sid"]=$r['sid']; $a["content"]=$r['content']; $a["key"]=$r['key']; $doc->setFields($a); $index->update($doc)...

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

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

...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[len+1]);//大部分...

37.XSJsonDataSource::getDataList

...ction getDataList(){ // read line (check to timeout?) $line = ''; while (true) { $buf = fgets($this->fd, 8192); if ($buf === false || strlen($buf) === 0) { break; } $line .= $buf; if (strlen($buf) < 8191 || substr($buf, - 1, 1) === "\n") { ...

38.xdb追加的遍历接口

发布时间:2012-06-17 13:06 t By hit

...ee_plist plist = _xdb_tree_plist,tmp_plist = _xdb_tree_plist; while (tmp_plist != NULL) { plist = tmp_plist; tmp_plist = tmp_plist->next; } plist->next = list; } //left right memcpy(ptr, buf,...

39.RE: Linux C API scws_get_tops的调用方法

更新时间:2011-07-30 11:07 t By hightman

..._send_text(s, text, strlen(text)); cur = top = 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);

40.请教为什么我这个无法分割成功啊?

发布时间:2011-07-05 20:07 t By cool

...径下的词典和规则文件 $so->send_text("我是一个中国人");; while ($tmp = $so->get_result()) { foreach($tmp as $k=>$v){ echo $v['word']."|"; } print_r($tmp); } $so->close(); 我用的版本是:php_scws.dll(2) PHP扩展库 Windows/PHP 5.2.x 准确: 95%, 召回: 91%, 速度:...

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