搜索

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

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

发布时间:2011-07-30 16:07 t By lankelan

...end_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); [/quote] 实在是太好用,太...

42.XSDatabaseSQLite

...rce($res)) { $ret = $res; } else { $ret = array(); while ($tmp = sqlite_fetch_array($res, SQLITE_ASSOC)) { $ret[] = $tmp; } } return $ret;} 执行 SQL 语句查询

43.我对切词尝试做了下功能修改

更新时间:2013-12-27 20:12 t By linqingtao

... m = i; int fir = -1; if (s->mode & SCWS_MULTI_SHORT) { while (m < j) { k = m; fir = -1; // hightman.111223: multi short enhanced for (n = m + 1; n wmap[m][n]; if (!item) continue; // first shortest or last longest word if (it...

44.XSDatabaseSQLite3

...ect($res)) { $ret = $res; } else { $ret = array(); while ($tmp = $res->fetchArray(SQLITE3_ASSOC)) { $ret[] = $tmp; } $res->finalize(); } return $ret;} 执行 SQL 语句查询

45.自定义词库用不了。非常不解啊。。

发布时间:2011-10-21 16:10 t By ci169

...ime_start = $this -> get_microtime(); $this -> so->send_text($text); while ($temp = $this -> so->get_result()) { foreach ($temp as $key=>$val) { $list[$val['word']] = $val['word']; } } $time_end = $this -> get_microtime(); $time = $time_end - $time_start; Retur...

46.使用自定义词库的时候,部分词会丢失

更新时间:2014-04-18 17:04 t By tianly

...发现"); //获取分词结果,如果提取高频词用get_tops方法 while ($words = $so->get_result()) { foreach ($words as $word) { print_r($word); } } $so->close();

47.XSDatabasePgSQL

...('PgSQL ERROR: ' . pg_last_error($this->link)); } $ret = array(); while ($tmp = pg_fetch_assoc($res)) { $ret[] = $tmp; } pg_free_result($res); return $ret;} 执行 SQL 语句查询 setUtf8() 方法 public void setUtf8() 源码: sdk/php/util/XSDataSource.cla...

48.强烈建议支持词库里的词可以是纯英文单词

更新时间:2011-04-24 01:04 t By lauxinz

...1->next = res; \ s->res1 = res; \ } \ } while(0) 说明: * 如果发现有一个属性为 "en"或"nz"的词就从dict里查询,判断该词在dict里是否存在,存在则从查询结果中获得该词的属性。

49.XSDatabaseMySQLI

...ect($res)) { $ret = $res; } else { $ret = array(); while ($tmp = $res->fetch_assoc()) { $ret[] = $tmp; } $res->free(); } return $ret;} 执行 SQL 语句查询 setUtf8() 方法 public bool setUtf8() {return} bool 始终返...

50.XSDatabaseMySQL

...rce($res)) { $ret = $res; } else { $ret = array(); while ($tmp = mysql_fetch_assoc($res)) { $ret[] = $tmp; } mysql_free_result($res); } return $ret;} 执行 SQL 语句查询 setUtf8() 方法 public bool setUtf8() {return} boo...

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