{"id":1284,"date":"2009-08-20T11:09:04","date_gmt":"2009-08-20T02:09:04","guid":{"rendered":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/?p=1284"},"modified":"2009-08-20T16:49:48","modified_gmt":"2009-08-20T07:49:48","slug":"php_mecab%e3%81%aeapi%e4%b8%80%e8%a6%a7","status":"publish","type":"post","link":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/2009\/08\/20\/1284\/","title":{"rendered":"php_mecab\u306eAPI\u4e00\u89a7"},"content":{"rendered":"<p><a href=\"http:\/\/archive4arab.com\/xx\/nph-1.pl\/000010A\/http\/page2.xrea.jp\/doc\/php_mecab_apis.txt\">php_mecab-0.2.0\u306e\u95a2\u6570\u4e00\u89a7<\/a>\u3092\u6574\u5f62\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<ol>\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_version\">mecab_version<\/a> &#8211; Get the version number of MeCab.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_split\">mecab_split<\/a> &#8211; Split string into an array of morphemes.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_new\">mecab_new<\/a> &#8211; Create new tagger resource of MeCab.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_destroy\">mecab_destroy<\/a> &#8211; Free the tagger.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_sparse_tostr\">mecab_sparse_tostr<\/a> &#8211; Get the parse result as a string.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_sparse_tonode\">mecab_sparse_tonode<\/a> &#8211; Get the parse result as a node.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_nbest_sparse_tostr\">mecab_nbest_sparse_tostr<\/a> &#8211; Get the N-Best list as a string.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_nbest_init\">mecab_nbest_init<\/a> &#8211; Initialize the N-Best list.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_nbest_next_tostr\">mecab_nbest_next_tostr<\/a> &#8211; Get the next result of N-Best as a string.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_nbest_next_tonode\">mecab_nbest_next_tonode<\/a> &#8211; Get the next result of N-Best as a node.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_format_node\">mecab_format_node<\/a> &#8211; Format a node to string. The format is specified by &#8220;-O&#8221; option or &#8211;{node|unk|bos|eos}-format=STR. The detail is found in the web site and\/or the manpage of MeCab.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_dictionary_info\">mecab_dictionary_info<\/a> &#8211; Get the information of using dictionary as an associative array.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_toarray\">mecab_node_toarray<\/a> &#8211; Get all elements of the node as an associated array.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_tostring\">mecab_node_tostring<\/a> &#8211; Get the formatted string of the node.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_current\">mecab_node_current<\/a> &#8211; [Iterator implementation] Return the current element.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_key\">mecab_node_key<\/a> &#8211; [Iterator implementation] Return the key of the current element.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_valid\">mecab_node_valid<\/a> &#8211; [Iterator implementation] Check if there is a current element after calls to rewind() or next().\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_rewind\">mecab_node_rewind<\/a> &#8211; [Iterator implementation] Set the node pointer to the beginning.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_next\">mecab_node_next<\/a> &#8211; Get the next node.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_prev\">mecab_node_prev<\/a> &#8211; Get the previous node.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_next\">mecab_node_next<\/a> &#8211; Get the next node.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_enext\">mecab_node_enext<\/a> &#8211; Get the enext node.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_bnext\">mecab_node_bnext<\/a> &#8211; Get the bnext node.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_rpath\">mecab_node_rpath<\/a> &#8211; Get the rpath.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_lpath\">mecab_node_lpath<\/a> &#8211; Get the lpath.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_begin_node_list\">mecab_node_begin_node_list<\/a> &#8211; Get the given index of begin-node list.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_end_node_list\">mecab_node_end_node_list<\/a> &#8211; Get the given index of end-node list.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_surface\">mecab_node_surface<\/a> &#8211; Get the surface.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_feature\">mecab_node_feature<\/a> &#8211; Get the feature.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_id\">mecab_node_id<\/a> &#8211; Get the ID.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_length\">mecab_node_length<\/a> &#8211; Get the length of the surface.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_rlength\">mecab_node_rlength<\/a> &#8211; Get the length of the surface and its leading whitespace.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_rcattr\">mecab_node_rcattr<\/a> &#8211; Get the ID of the right context.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_lcattr\">mecab_node_lcattr<\/a> &#8211; Get the ID of the left context.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_posid\">mecab_node_posid<\/a> &#8211; Get the ID of the Part-of-Speech. (node->posid is not used in MeCab-0.90)\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_char_type\">mecab_node_char_type<\/a> &#8211; Get the type of the character.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_stat\">mecab_node_stat<\/a> &#8211; Get the status.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_isbest\">mecab_node_isbest<\/a> &#8211; Determine whether the node is the best solution.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_alpha\">mecab_node_alpha<\/a> &#8211; Get the forward log probability.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_beta\">mecab_node_beta<\/a> &#8211; Get the backward log probability.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_prob\">mecab_node_prob<\/a> &#8211; Get the marginal probability.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_wcost\">mecab_node_wcost<\/a> &#8211; Get the word arising cost.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_node_cost\">mecab_node_cost<\/a> &#8211; Get the cumulative cost.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_path_rnext\">mecab_path_rnext<\/a> &#8211; Get the rnext path.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_path_lnext\">mecab_path_lnext<\/a> &#8211; Get the lnext path.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_path_rnode\">mecab_path_rnode<\/a> &#8211; Get the rnode.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_path_lnode\">mecab_path_lnode<\/a> &#8211; Get the lnode.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_path_prob\">mecab_path_prob<\/a> &#8211; Get the marginal probability.\n<li><a href=\"\/~oshiro\/php_mecab_apis.html#mecab_path_cost\">mecab_path_cost<\/a> &#8211; Get the cumulative cost.\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>php_mecab-0.2.0\u306e\u95a2\u6570\u4e00\u89a7\u3092\u6574\u5f62\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[136],"_links":{"self":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/1284"}],"collection":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/comments?post=1284"}],"version-history":[{"count":5,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/1284\/revisions"}],"predecessor-version":[{"id":1289,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/1284\/revisions\/1289"}],"wp:attachment":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/media?parent=1284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/categories?post=1284"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/tags?post=1284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}