搜索

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

61.scws分词乱码问题,求解

发布时间:2012-07-17 16:07 t By wainilxx7

... segment [4] => 鏂 [5] => 规 [6] => 硶 [7] => 鎵 [8] => ц [9] =>  [10] => 璇 [11] => 嶆 [12] => 眹 [13] => 鍒 [14] => 囧 [15] => 壊 ) ”,这感觉好像是编码格式的问题,代码用的是gbk,我没改,看了下网页显示编码也是用的gbk。 然后我用记事本打...

62.RE: Hightman 你好,我在编译scws时出现了问题

发布时间:2009-05-07 17:05 t By crackx

...以运行,但test.c测试程序无法编译,错误信息: test.c:1:10: #include expects "FILENAME" or test.c: In function `main': test.c:4: error: `scws_t' undeclared (first use in this function) test.c:4: error: (Each undeclared identifier is reported only once test.c:4: error: for each...

63.在腾讯云主机上安装xunsearch

更新时间:2011-11-25 14:11 t By bigxu

...383(索引服务),8384(搜索服务).但是云主机只开放开了(8001-8010),10个 指定主端口.又不允许修改iptables.所以8383,8384两个端口是不能用了.当然 这是一个小case,不影响xunsearch的使用. 1)把xunsearch软件包解压到指定目录(tar -zxvf xunsearch.tgz -...

64.讯搜怎么连接数据库的,没看到连接数据库啊?

发布时间:2014-04-27 19:04 t By wtwei

...earch->setLimit(5, 1); // 设置返回结果最多为 5 条,并跳过前 10 条 $docs = $search->search($query); // 执行搜索,将搜索结果文档保存在 $docs 数组中 $count = $search->count(); // 获取搜索结果的匹配总数估算值 var_dump($docs);

65.搜索概述

...提升标题中包含 'xunsearch' 的记录的权重 $search->setLimit(5, 10); // 设置返回结果最多为 5 条,并跳过前 10 条 $docs = $search->search(); // 执行搜索,将搜索结果文档保存在 $docs 数组中 $count = $search->count(); // 获取搜索结果的匹配总数估算...

66.搜索结果正常,但json_encode结果之后就为空了

更新时间:2014-08-26 10:08 t By Leric

...c_name] => 家居家装 [image] => 97af8ea94459260bd2d10df0a4f0e895.jpg [sale_price] => 133.00 [255] => ) [_terms:XSDocument:private] => [_texts:XSDocument:private] => [_charse...

67.PSCWS4使用问题

更新时间:2010-10-21 17:10 t By hnmazda

...s->set_rule('etc/rules.utf8.ini'); $ret = array(); $ret = $cws->get_tops(10,'r,v,p'); echo "No.\tWord\t\t\tAttr\tTimes\tRank\n------------------------------------------------------\n"; $i = 1; foreach ($ret as $tmp) { printf("%02d.\t%-16s\t%s\t%d\t%.2f\n", $i++, $tmp['word'], $tmp['attr'], $...

68.求解释TF/IDF计算器中get_tfidf的算法

发布时间:2013-10-30 11:10 t By jjyang

function get_tfidf($word, $count) { if ($count < 1000) $count = 21000 - $count * 18; $tf = log($count); $tf = pow($tf, 5) * log(strlen($word)); $tf = log($tf); $idf = log(5000000000/$count); //if ($tf > 13) $idf *= 1.4; return array($...

69.求解释TF/IDF计算器中get_tfidf的算法

发布时间:2013-10-30 11:10 t By jjyang

function get_tfidf($word, $count) { if ($count < 1000) $count = 21000 - $count * 18; $tf = log($count); $tf = pow($tf, 5) * log(strlen($word)); $tf = log($tf); $idf = log(5000000000/$count); //if ($tf > 13) $idf *= 1.4; return array($...

70.安装后,第一个例子,显示乱码

发布时间:2013-03-27 16:03 t By zctr

...=> Array ( [word] => よ [off] => 56 [len] => 2 [idf] => 0 [attr] => un ) [10] => Array ( [word] => 。 [off] => 58 [len] => 2 [idf] => 0 [attr] => un ) [11] => Array ( [word] => 鏈 [off] => 60 [len] => 2 [idf] => 0 [attr] => un ) )

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