搜索

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

271.PHP4版 简易中文分词(PSCWS) 第2/3版

发布时间:2007-06-06 09:06 t By hightman

...库调用方法说明[/b][/size] require '/path/to/my_SimpledCWS2.class.php'; [color=darkorange]// 如果是第3版请用 my_SimpledCWS3.class.php [/color] $cws = new my_SimpledCWS2('dict/dict.cdb'); $rs = $cws->segment($string); print_r($rs); // 其它可...

272.XSException::getRelPath

... {return} string 转换后的相对路径 源码: sdk/php/lib/XS.class.php#L79 (显示) public static function getRelPath($file){ $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false; $to = $file; } else { $pos = strrpos($file, '/')...

273.XSUtil::getOpt

...的参数值,若不存在则返回 null 源码: sdk/php/util/XSUtil.class.php#L161 (显示) public static function getOpt($short, $long = null, $extra = false){ if (self::$options === null) { self::parseOpt(); } $value = null; $options = self::$options; if ($long !== nul...

274.XSSearch::count

...匹配的搜索结果数量, 估算数值 源码: sdk/php/lib/XSSearch.class.php#L547 (显示) public function count($query = null){ $query = $query === null ? '' : $this->preQueryString($query); if ($query === '' && $this->_count !== null) { return $this->_count; } $cmd = ne...

275.XSIndex::setScwsMulti

... 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L331 (显示) public function setScwsMulti($level){ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $...

276.XSIndex::delSynonym

... 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L306 (显示) public function delSynonym($raw, $synonym = null){ $raw = strval($raw); $synonym = $synonym === null ? '' : strval($synonym); if ($raw !== '') { $cmd = new XSCommand(XS_CMD_INDEX_SYNON...

277.XSSearch::setScwsMulti

... 返回自身对象以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L444 (显示) public function setScwsMulti($level){ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $...

278.报错json_last_error() debug不可用

发布时间:2013-07-19 16:07 t By tboy

...nction json_last_error() in /usr/local/xunsearch/sdk/php/util/XSDataSource.class.php on line 332 过滤器 debug 不显示 json导入出错

279.XSDocument::__construct

...编码时, 本参数表示数据编码 源码: sdk/php/lib/XSDocument.class.php#L56 (显示) public function __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = $p; } elseif (is_string($p)) { if (strlen($p) !== self::$_resSize) { ...

280.XSTokenizerScws::addDict

...回对象本身以支持串接操作 源码: sdk/php/lib/XSTokenizer.class.php#L299 (显示) public function addDict($fpath, $mode = null){ if (!is_int($mode)) { $mode = stripos($fpath, '.txt') !== false ? SCWS_XDICT_TXT : SCWS_XDICT_XDB; } if (!isset($this->_setting['add_dict']...

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