搜索

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

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

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

...t(s, "utf8"); scws_set_dict(s, "/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_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; } scw...

32.关于扩展词库的问题

发布时间:2012-12-10 15:12 t By timeage

...>set_ignore(true); $cws->set_multi(1 | 2 | 4 | 8); $cws->send_text($mydata); $cws->get_result();

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

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

...统会自动试调用 ini 中指定路径下的词典和规则文件 $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...

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

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

...s, "utf8"); scws_set_dict(s, "/etc/dict.utf8.xdb", SCWS_XDICT_XDB); scws_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; ...

35.XSServer::execCommand

...he cmd for those need not answer if ($cmd->cmd & 0x80) { $this->_sendBuffer .= $cmd; return true; } // send cmd to server $buf = $this->_sendBuffer . $cmd; $this->_sendBuffer = ''; $this->write($buf); // return true directly for local file if ($this->_flag & sel...

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

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

...list($text) { $time_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 - $tim...

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

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

...分词法聚合 $so->set_duality(true); //要进行分词的语句 $so->send_text("朝鲜近日播放的一个纪录片中,发现"); //获取分词结果,如果提取高频词用get_tops方法 while ($words = $so->get_result()) { foreach ($words as $word) { print_r($word); } ...

38.libscws的问题

发布时间:2009-12-02 16:12 t By nftw

...M); scws_set_rule(s, "/usr/local/etc/rules.ini"); scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(s)) { while (cur) { printf("Word: %.*s/%s (IDF = %4.2f)\n", cur->len, text+cur-...

39.XSServer

... XSServer _flag XSServer _project XSServer _sendBuffer XSServer _sock XSServer Public 方法 隐去继承来的方法 名称描述定义于 __construct() 构造函数, 打开连接 XSServer __destruct() 析构函...

40.RE: 1.1.2的 自定义字典无法使用

更新时间:2010-05-24 22:05 t By 逆雪寒

...nore(1); $so->set_multi(0); $words = $_GET['words']; //分词 $so->send_text($words); echo($words); //打印搜索的关键字 var_dump($so->get_result()); $so->close(); 异常下返回的结果 bool(true) bool(true) 笔记本电脑 bool(false) 刷新一两次正常的结果...

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