Last active
May 2, 2023 22:35
-
-
Save fumikito/bb172b4cf5648c7f8451 to your computer and use it in GitHub Desktop.
PhpStormのプロジェクト内に入れておくとphp-mecabのコード補完ができる魔法のファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The MeCab PHP extension | |
* | |
* Copyright (c) 2006-2012 Ryusuke SEKIYAMA. All rights reserved. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
* and/or sell copies of the Software, and to permit persons to whom the | |
* Software is furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included | |
* in all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |
* DEALINGS IN THE SOFTWARE. | |
* | |
* @package php-mecab | |
* @author Ryusuke SEKIYAMA <[email protected]> | |
* @copyright 2006-2012 Ryusuke SEKIYAMA | |
* @license http://www.opensource.org/licenses/mit-license.php MIT License | |
* @version SVN: $Id$ | |
*/ | |
/** | |
* Get the version number of MeCab. | |
* | |
* @return string The version of linked MeCab library. | |
*/ | |
function mecab_version(){} | |
/** | |
* Split string into an array of morphemes. | |
* | |
* @param string $str The target string. | |
* @param string $dicdir The path for system dictionary. | |
* @param string $userdic The path for user dictionary. | |
* @param callback $filter A filter function or method. | |
* @param bool $persistent Whether to be persistent. | |
* @return array | |
*/ | |
function mecab_split($str, $dicdir = "", $userdic = "", $filter = null, $persistent = false){} | |
/** | |
* Create new tagger resource of MeCab. | |
* | |
* @param array $options The analysis/output options. (optional) | |
* The values are same to command line options. | |
* The detail is found in the web site and/or the manpage of MeCab. | |
* @param bool $persistent Whether to be persistent. | |
* @return MeCab A tagger resource of MeCab. | |
*/ | |
function mecab_new($options, $persistent = false){} | |
/** | |
* Free the tagger. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @return void | |
*/ | |
function mecab_destroy($mecab){} | |
/** | |
* Get partial parsing mode. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @return bool | |
*/ | |
function mecab_get_partial($mecab){} | |
/** | |
* Set partial parsing mode. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param bool $partial The partial parsing mode. | |
* @return void | |
*/ | |
function mecab_set_partial($mecab, $partial){} | |
/** | |
* Get temparature parameter theta. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @return float | |
*/ | |
function mecab_get_theta($mecab){} | |
/** | |
* Set temparature parameter theta. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param float $theta The temparature parameter theta. | |
* @return void | |
*/ | |
function mecab_set_theta($mecab, $theta){} | |
/** | |
* Get lattice information level. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @return int | |
*/ | |
function mecab_get_lattice_level($mecab){} | |
/** | |
* Set lattice information level. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param int $level The lattice information level. | |
* @return void | |
*/ | |
function mecab_set_lattice_level($mecab, $level){} | |
/** | |
* Get all morphs mode. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @return bool | |
*/ | |
function mecab_get_all_morphs($mecab){} | |
/** | |
* Set all morphs mode. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param bool $all_morphs The all morphs mode. | |
* @return void | |
*/ | |
function mecab_set_all_morphs($mecab, $all_morphs){} | |
/** | |
* Get the parse result as a string. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param string $str The parse target. | |
* @param int $len The maximum length that can be analyzed. (optional) | |
* @param int $olen The limit length of the output buffer. (optional) | |
* @return string The parse result. | |
* If output buffer has overflowed, returns false. | |
*/ | |
function mecab_sparse_tostr($mecab, $str, $len, $olen){} | |
/** | |
* Get the parse result as a node. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param string $str The parse target. | |
* @param int $len The maximum length that can be analyzed. (optional) | |
* @return MeCab_Node The result node of given string. | |
*/ | |
function mecab_sparse_tonode($mecab, $str, $len){} | |
/** | |
* Get the N-Best list as a string. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param int $n The number of the result list. | |
* @param string $str The parse target. | |
* @param int $len The maximum length that can be analyzed. (optional) | |
* @param int $olen The maximum length of the output. (optional) | |
* @return string The N-Best list. | |
* If output buffer has overflowed, returns false. | |
*/ | |
function mecab_nbest_sparse_tostr($mecab, $n, $str, $len, $olen){} | |
/** | |
* Initialize the N-Best list. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param string $str The parse target. | |
* @param int $len The maximum length that can be analyzed. (optional) | |
* @return bool True if succeeded to initilalize, otherwise returns false. | |
*/ | |
function mecab_nbest_init($mecab, $str, $len){} | |
/** | |
* Get the next result of N-Best as a string. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param int $olen The maximum length of the output. (optional) | |
* @return string The parse result of the next pointer. | |
* If there are no more results, returns false. | |
* Also returns false if output buffer has overflowed. | |
*/ | |
function mecab_nbest_next_tostr($mecab, $olen){} | |
/** | |
* Get the next result of N-Best as a node. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @return MeCab_Node The result node of the next pointer. | |
* If there are no more results, returns false. | |
*/ | |
function mecab_nbest_next_tonode($mecab){} | |
/** | |
* Format a node to string. | |
* The format is specified by "-O" option or --{node|unk|bos|eos}-format=STR. | |
* The detail is found in the web site and/or the manpage of MeCab. | |
* NOTICE: If the option was "wakati" or "dump", the return string will be empty. | |
* | |
* @param MeCab $mecab The tagger resource of MeCab. | |
* @param MeCab_Node $node The node of the source string. | |
* @return string The formatted string. | |
* @see mecab_node_tostring | |
*/ | |
function mecab_format_node($mecab, $node){} | |
/** | |
* Get the information of using dictionary as an associative array. | |
* | |
* @return array The information of the dictionary. | |
*/ | |
function mecab_dictionary_info($mecab){} | |
/** | |
* Get all elements of the node as an associative array. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @param bool $dump_all Whether dump all related nodes and paths or not. | |
* @return array All elements of the node. | |
*/ | |
function mecab_node_toarray($node, $dump_all = false){} | |
/** | |
* Get the formatted string of the node. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return string The formatted string. | |
* @see mecab_format_node | |
*/ | |
function mecab_node_tostring($node){} | |
/** | |
* Get the previous node. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return MeCab_Node The previous node. | |
* If the given node is the first one, returns FALSE. | |
*/ | |
function mecab_node_prev($node){} | |
/** | |
* Get the next node. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return MeCab_Node The next node. | |
* If the given node is the last one, returns FALSE. | |
*/ | |
function mecab_node_next($node){} | |
/** | |
* Get the enext node. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return MeCab_Node The next node which has same end point as the given node. | |
* If there is no `enext' node, returns false. | |
*/ | |
function mecab_node_enext($node){} | |
/** | |
* Get the bnext node. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return MeCab_Node The next node which has same beggining point as the given one. | |
* If there is no `bnext' node, returns false. | |
*/ | |
function mecab_node_bnext($node){} | |
/** | |
* Get the rpath. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return MeCab_Path The next node which has same end point as the given node. | |
* If there is no `rpath' node, returns false. | |
*/ | |
function mecab_node_rpath($node){} | |
/** | |
* Get the lpath. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return MeCab_Path The next node which has same beggining point as the given one. | |
* If there is no `lpath' node, returns false. | |
*/ | |
function mecab_node_lpath($node){} | |
/** | |
* Get the given index of begin-node list. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @param int $index An indexo of the node. | |
* @return MeCab_Node | |
* @see mecab_node_end_node_list | |
*/ | |
function mecab_node_begin_node_list($node, $index){} | |
/** | |
* Get the given index of end-node list. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @param int $index An indexo of the node. | |
* @return MeCab_Node | |
* @see mecab_node_begin_node_list | |
*/ | |
function mecab_node_end_node_list($node, $index){} | |
/** | |
* Get the surface. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return string The surface of the node. | |
*/ | |
function mecab_node_surface($node){} | |
/** | |
* Get the feature. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return string The feature of the node. | |
*/ | |
function mecab_node_feature($node){} | |
/** | |
* Get the ID. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The ID of the node. | |
*/ | |
function mecab_node_id($node){} | |
/** | |
* Get the length of the surface. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The length of the surface of the node. | |
*/ | |
function mecab_node_length($node){} | |
/** | |
* Get the length of the surface and its leading whitespace. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The length of the surface and its leading whitespace of the node. | |
*/ | |
function mecab_node_rlength($node){} | |
/** | |
* Get the ID of the right context. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The ID of the right context. | |
*/ | |
function mecab_node_rcattr($node){} | |
/** | |
* Get the ID of the left context. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The ID of the left context. | |
*/ | |
function mecab_node_lcattr($node){} | |
/** | |
* Get the ID of the Part-of-Speech. | |
* (node->posid is not used in MeCab-0.90) | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The ID of the Part-of-Speech. | |
* Currently, always returns 0. | |
*/ | |
function mecab_node_posid($node){} | |
/** | |
* Get the type of the character. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The type of the character. | |
*/ | |
function mecab_node_char_type($node){} | |
/** | |
* Get the status. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The status of the node. | |
* The return value is one of the following: | |
* MECAB_NOR_NODE (0:Normal) | |
* MECAB_UNK_NODE (1:Unknown) | |
* MECAB_BOS_NODE (2:Beginning-of-Sentence) | |
* MECAB_EOS_NODE (3:End-of-Sentence) | |
*/ | |
function mecab_node_stat($node){} | |
/** | |
* Determine whether the node is the best solution. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return bool True if the node is the best, otherwise returns false. | |
*/ | |
function mecab_node_isbest($node){} | |
/** | |
* Get the length of the sentence. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The length of the sentence if the node is BOS node, otherwise returns false. | |
*/ | |
function mecab_node_sentence_length($node){} | |
/** | |
* Get the forward log probability. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return double The forward log probability of the node. | |
*/ | |
function mecab_node_alpha($node){} | |
/** | |
* Get the backward log probability. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return double The backward log probability of the node. | |
*/ | |
function mecab_node_beta($node){} | |
/** | |
* Get the marginal probability. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return double The marginal probability of the node. | |
*/ | |
function mecab_node_prob($node){} | |
/** | |
* Get the word arising cost. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The word arising cost of the node. | |
*/ | |
function mecab_node_wcost($node){} | |
/** | |
* Get the cumulative cost. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return int The cumulative cost of the node. | |
*/ | |
function mecab_node_cost($node){} | |
/** | |
* Get the rnext path. | |
* | |
* @param MeCab_Path $path The path of the source string. | |
* @return MeCab_Path The rnext path. | |
* If the given path is the first one, returns FALSE. | |
*/ | |
function mecab_path_rnext($path){} | |
/** | |
* Get the lnext path. | |
* | |
* @param MeCab_Path $path The path of the source string. | |
* @return MeCab_Path The lnext path. | |
* If the given path is the last one, returns FALSE. | |
*/ | |
function mecab_path_lnext($path){} | |
/** | |
* Get the rnode. | |
* | |
* @param MeCab_Path $path The path of the source string. | |
* @return MeCab_Node The next path which has same end point as the given path. | |
* If there is no `rnode' path, returns false. | |
*/ | |
function mecab_path_rnode($path){} | |
/** | |
* Get the lnode. | |
* | |
* @param MeCab_Path $path The path of the source string. | |
* @return MeCab_Node The next path which has same beggining point as the given one. | |
* If there is no `lnode' path, returns false. | |
*/ | |
function mecab_path_lnode($path){} | |
/** | |
* Get the marginal probability. | |
* | |
* @param MeCab_Path $path The path of the source string. | |
* @return double The marginal probability of the path. | |
*/ | |
function mecab_path_prob($path){} | |
/** | |
* Get the cumulative cost. | |
* | |
* @param MeCab_Path $path The path of the source string. | |
* @return int The cumulative cost of the path. | |
*/ | |
function mecab_path_cost($path){} | |
/** | |
* Class MeCab_Tagger | |
*/ | |
class MeCab_Tagger | |
{ | |
/** | |
* Split string into an array of morphemes. | |
* | |
* @param string $str The target string. | |
* @param string $dicdir The path for system dictionary. | |
* @param string $userdic The path for user dictionary. | |
* @param callback $filter A filter function or method. | |
* @param bool $persistent Whether to be persistent. | |
* @return array | |
*/ | |
function split($str, $dicdir = "", $userdic = "", $filter = null, $persistent = false){} | |
/** | |
* Create new tagger resource of MeCab. | |
* | |
* @param array $options The analysis/output options. (optional) | |
* The values are same to command line options. | |
* The detail is found in the web site and/or the manpage of MeCab. | |
* @param bool $persistent Whether to be persistent. | |
*/ | |
function __construct($options, $persistent = false){} | |
/** | |
* Get partial parsing mode. | |
* | |
* @return bool | |
*/ | |
function getPartial(){} | |
/** | |
* Set partial parsing mode. | |
* | |
* @param bool $partial The partial parsing mode. | |
* @return void | |
*/ | |
function setPartial($partial){} | |
/** | |
* Get temparature parameter theta. | |
* | |
* @return float | |
*/ | |
function getTheta(){} | |
/** | |
* Set temparature parameter theta. | |
* | |
* @param float $theta The temparature parameter theta. | |
* @return void | |
*/ | |
function setTheta($theta){} | |
/** | |
* Get lattice information level. | |
* | |
* @return int | |
*/ | |
function getLatticeLevel(){} | |
/** | |
* Set lattice information level. | |
* | |
* @param int $level The lattice information level. | |
* @return void | |
*/ | |
function setLatticeLevel($level){} | |
/** | |
* Get all morphs mode. | |
* | |
* @return bool | |
*/ | |
function getAllMorphs(){} | |
/** | |
* Set all morphs mode. | |
* | |
* @param bool $all_morphs The all morphs mode. | |
* @return void | |
*/ | |
function setAllMorphs($all_morphs){} | |
/** | |
* Get the parse result as a string. | |
* | |
* @param string $str The parse target. | |
* @param int $len The maximum length that can be analyzed. (optional) | |
* @param int $olen The limit length of the output buffer. (optional) | |
* @return string The parse result. | |
* If output buffer has overflowed, returns false. | |
*/ | |
function parse($str, $len, $olen){} | |
/** | |
* Get the parse result as a string. | |
* | |
* @param string $str The parse target. | |
* @param int $len The maximum length that can be analyzed. (optional) | |
* @param int $olen The limit length of the output buffer. (optional) | |
* @return string The parse result. | |
* If output buffer has overflowed, returns false. | |
*/ | |
function parseToString($str, $len, $olen){} | |
/** | |
* Get the parse result as a node. | |
* | |
* @param string $str The parse target. | |
* @param int $len The maximum length that can be analyzed. (optional) | |
* @return MeCab_Node The result node of given string. | |
*/ | |
function parseToNode($str, $len){} | |
/** | |
* Get the N-Best list as a string. | |
* | |
* @param int $n The number of the result list. | |
* @param string $str The parse target. | |
* @param int $len The maximum length that can be analyzed. (optional) | |
* @param int $olen The maximum length of the output. (optional) | |
* @return string The N-Best list. | |
* If output buffer has overflowed, returns false. | |
*/ | |
function parseNBest($n, $str, $len, $olen){} | |
/** | |
* Initialize the N-Best list. | |
* | |
* @param string $str The parse target. | |
* @param int $len The maximum length that can be analyzed. (optional) | |
* @return bool True if succeeded to initilalize, otherwise returns false. | |
*/ | |
function parseNBestInit($str, $len){} | |
/** | |
* Get the next result of N-Best as a string. | |
* | |
* @param int $olen The maximum length of the output. (optional) | |
* @return string The parse result of the next pointer. | |
* If there are no more results, returns false. | |
* Also returns false if output buffer has overflowed. | |
*/ | |
function next($olen){} | |
/** | |
* Get the next result of N-Best as a node. | |
* | |
* @return MeCab_Node The result node of the next pointer. | |
* If there are no more results, returns false. | |
*/ | |
function nextNode(){} | |
/** | |
* Format a node to string. | |
* The format is specified by "-O" option or --{node|unk|bos|eos}-format=STR. | |
* The detail is found in the web site and/or the manpage of MeCab. | |
* NOTICE: If the option was "wakati" or "dump", the return string will be empty. | |
* | |
* @param MeCab_Node $node The node of the source string. | |
* @return string The formatted string. | |
* @see mecab_node_tostring | |
*/ | |
function formatNode($node){} | |
/** | |
* Get the information of using dictionary as an associative array. | |
* | |
* @return array The information of the dictionary. | |
*/ | |
function dictionaryInfo(){} | |
} | |
/** | |
* Class MeCab_Node | |
*/ | |
class MeCab_Node | |
{ | |
/** | |
* Get all elements of the node as an associative array. | |
* | |
* @param bool $dump_all Whether dump all related nodes and paths or not. | |
* @return array All elements of the node. | |
*/ | |
function toArray($dump_all = false){} | |
/** | |
* Get the formatted string of the node. | |
* | |
* @return string The formatted string. | |
* @see mecab_format_node | |
*/ | |
function toString(){} | |
/** | |
* Get the formatted string of the node. | |
* | |
* @return string The formatted string. | |
* @see mecab_format_node | |
*/ | |
function __toString(){} | |
/** | |
* Get the previous node. | |
* | |
* @return MeCab_Node The previous node. | |
* If the given node is the first one, returns FALSE. | |
*/ | |
function getPrev(){} | |
/** | |
* Get the next node. | |
* | |
* @return MeCab_Node The next node. | |
* If the given node is the last one, returns FALSE. | |
*/ | |
function getNext(){} | |
/** | |
* Get the enext node. | |
* | |
* @return MeCab_Node The next node which has same end point as the given node. | |
* If there is no `enext' node, returns false. | |
*/ | |
function getENext(){} | |
/** | |
* Get the bnext node. | |
* | |
* @return MeCab_Node The next node which has same beggining point as the given one. | |
* If there is no `bnext' node, returns false. | |
*/ | |
function getBNext(){} | |
/** | |
* Get the rpath. | |
* | |
* @return MeCab_Path The next node which has same end point as the given node. | |
* If there is no `rpath' node, returns false. | |
*/ | |
function getRPath(){} | |
/** | |
* Get the lpath. | |
* | |
* @return MeCab_Path The next node which has same beggining point as the given one. | |
* If there is no `lpath' node, returns false. | |
*/ | |
function getLPath(){} | |
/** | |
* Get the surface. | |
* | |
* @return string The surface of the node. | |
*/ | |
function getSurface(){} | |
/** | |
* Get the feature. | |
* | |
* @return string The feature of the node. | |
*/ | |
function getFeature(){} | |
/** | |
* Get the ID. | |
* | |
* @return int The ID of the node. | |
*/ | |
function getId(){} | |
/** | |
* Get the length of the surface. | |
* | |
* @return int The length of the surface of the node. | |
*/ | |
function getLength(){} | |
/** | |
* Get the length of the surface and its leading whitespace. | |
* | |
* @return int The length of the surface and its leading whitespace of the node. | |
*/ | |
function getRLength(){} | |
/** | |
* Get the ID of the right context. | |
* | |
* @return int The ID of the right context. | |
*/ | |
function getRcAttr(){} | |
/** | |
* Get the ID of the left context. | |
* | |
* @return int The ID of the left context. | |
*/ | |
function getLcAttr(){} | |
/** | |
* Get the ID of the Part-of-Speech. | |
* (node->posid is not used in MeCab-0.90) | |
* | |
* @return int The ID of the Part-of-Speech. | |
* Currently, always returns 0. | |
*/ | |
function getPosId(){} | |
/** | |
* Get the type of the character. | |
* | |
* @return int The type of the character. | |
*/ | |
function getCharType(){} | |
/** | |
* Get the status. | |
* | |
* @return int The status of the node. | |
* The return value is one of the following: | |
* MECAB_NOR_NODE (0:Normal) | |
* MECAB_UNK_NODE (1:Unknown) | |
* MECAB_BOS_NODE (2:Beginning-of-Sentence) | |
* MECAB_EOS_NODE (3:End-of-Sentence) | |
*/ | |
function getStat(){} | |
/** | |
* Determine whether the node is the best solution. | |
* | |
* @return bool True if the node is the best, otherwise returns false. | |
*/ | |
function isBest(){} | |
/** | |
* Get the length of the sentence. | |
* | |
* @return int The length of the sentence if the node is BOS node, otherwise returns false. | |
*/ | |
function getSentenceLength(){} | |
/** | |
* Get the forward log probability. | |
* | |
* @return double The forward log probability of the node. | |
*/ | |
function getAlpha(){} | |
/** | |
* Get the backward log probability. | |
* | |
* @return double The backward log probability of the node. | |
*/ | |
function getBeta(){} | |
/** | |
* Get the marginal probability. | |
* | |
* @return double The marginal probability of the node. | |
*/ | |
function getProb(){} | |
/** | |
* Get the word arising cost. | |
* | |
* @return int The word arising cost of the node. | |
*/ | |
function getWCost(){} | |
/** | |
* Get the cumulative cost. | |
* | |
* @return int The cumulative cost of the node. | |
*/ | |
function getCost(){} | |
/** | |
* Create MeCab_Node object. | |
* | |
* @access private | |
* @ignore | |
*/ | |
private function __construct(){} | |
/** | |
* [Overloading implementation] | |
* A magick getter. | |
* | |
* @param string $name The name of property. | |
* @return mixed The value of the property. | |
* If there is not a named property, causes E_NOTICE error and returns false. | |
* @access public | |
* @ignore | |
*/ | |
public function __get($name){} | |
/** | |
* [Overloading implementation] | |
* Determine whether there is a named property. | |
* | |
* @param string $name The name of property. | |
* @return bool True if there is a named property, otherwise returns false. | |
* @access public | |
* @ignore | |
*/ | |
public function __isset($name){} | |
/** | |
* [IteratorAggregate implementation] | |
* Return the iterator object. | |
* | |
* @return object MeCab_NodeIterator | |
* @access public | |
* @ignore | |
*/ | |
public function getIterator(){} | |
/** | |
* Set the traverse mode. | |
* | |
* @param int $traverse The traverse mode. | |
* @return void | |
* @throws InvalidArgumentException | |
* @access public | |
*/ | |
public function setTraverse($tranverse){} | |
/** | |
* Return the iterator object for the given index of begin-node list. | |
* | |
* @param int $index An indexo of the node. | |
* @return object MeCab_Node | |
* @throws BadMethodCallException, InvalidArgumentException, OutOfBoundsException | |
* @access public | |
* @see MeCab_Node::getEndNodeList | |
*/ | |
public function getBeginNodeList($index){} | |
/** | |
* Return the node object for the given index of end-node list. | |
* | |
* @param int $index An indexo of the node. | |
* @return object MeCab_Node | |
* @throws BadMethodCallException, InvalidArgumentException, OutOfBoundsException | |
* @access public | |
* @see MeCab_Node::getBeginNodeList | |
*/ | |
public function getEndNodeList($index){} | |
/** | |
* [Iterator implementation] | |
* Return the key of the current element. | |
* | |
* @return int The cumulative cost of the node. | |
* @access public | |
* @ignore | |
*/ | |
public function key(){} | |
} | |
/** | |
* Class MeCab_Path | |
*/ | |
class MeCab_Path | |
{ | |
/** | |
* Get the rnext path. | |
* | |
* @return MeCab_Path The rnext path. | |
* If the given path is the first one, returns FALSE. | |
*/ | |
function getRNext(){} | |
/** | |
* Get the lnext path. | |
* | |
* @return MeCab_Path The lnext path. | |
* If the given path is the last one, returns FALSE. | |
*/ | |
function getLNext(){} | |
/** | |
* Get the rnode. | |
* | |
* @return MeCab_Node The next path which has same end point as the given path. | |
* If there is no `rnode' path, returns false. | |
*/ | |
function getRNode(){} | |
/** | |
* Get the lnode. | |
* | |
* @return MeCab_Node The next path which has same beggining point as the given one. | |
* If there is no `lnode' path, returns false. | |
*/ | |
function getLNode(){} | |
/** | |
* Get the marginal probability. | |
* | |
* @return double The marginal probability of the path. | |
*/ | |
function getProb(){} | |
/** | |
* Get the cumulative cost. | |
* | |
* @return int The cumulative cost of the path. | |
*/ | |
function getCost(){} | |
/** | |
* Create MeCab_Path object. | |
* | |
* @access private | |
* @ignore | |
*/ | |
private function __construct(){} | |
/** | |
* [Overloading implementation] | |
* A magick getter. | |
* | |
* @param string $name The name of property. | |
* @return mixed The value of the property. | |
* If there is not a named property, causes E_NOTICE error and returns false. | |
* @access public | |
* @ignore | |
*/ | |
public function __get($name){} | |
/** | |
* [Overloading implementation] | |
* Determine whether there is a named property. | |
* | |
* @param string $name The name of property. | |
* @return bool True if there is a named property, otherwise returns false. | |
* @access public | |
* @ignore | |
*/ | |
public function __isset($name){} | |
} | |
/** | |
* Class MeCab_NodeIterator | |
*/ | |
class MeCab_NodeIterator | |
{ | |
/** | |
* Create MeCab_NodeIterator object. | |
* | |
* @access private | |
* @ignore | |
*/ | |
private function __construct(){} | |
/** | |
* [Iterator implementation] | |
* Return the current element. | |
* | |
* @access public | |
* @ignore | |
*/ | |
public function current(){} | |
/** | |
* [Iterator implementation] | |
* Set the node pointer to the next. | |
* | |
* @return void | |
* @access public | |
* @ignore | |
*/ | |
public function next(){} | |
/** | |
* [Iterator implementation] | |
* Set the node pointer to the beginning. | |
* | |
* @return void | |
* @access public | |
* @ignore | |
*/ | |
public function rewind(){} | |
/** | |
* [Iterator implementation] | |
* Check if there is a current element after calls to rewind() or next(). | |
* | |
* @return bool True if there is an element after the current element, otherwise returns false. | |
* @access public | |
* @ignore | |
*/ | |
public function valid(){} | |
} | |
/** | |
* Alias of MeCab_Tagger | |
*/ | |
class MeCab extends MeCab_Tagger | |
{ | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment