« php_mecabがインストールできな... Main 一時リンク:MeCab、ベイズ推定... »

php_mecabのAPI一覧

php_mecab-0.2.0の関数一覧を整形してみました。

  1. mecab_version – Get the version number of MeCab.
  2. mecab_split – Split string into an array of morphemes.
  3. mecab_new – Create new tagger resource of MeCab.
  4. mecab_destroy – Free the tagger.
  5. mecab_sparse_tostr – Get the parse result as a string.
  6. mecab_sparse_tonode – Get the parse result as a node.
  7. mecab_nbest_sparse_tostr – Get the N-Best list as a string.
  8. mecab_nbest_init – Initialize the N-Best list.
  9. mecab_nbest_next_tostr – Get the next result of N-Best as a string.
  10. mecab_nbest_next_tonode – Get the next result of N-Best as a node.
  11. mecab_format_node – 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.
  12. mecab_dictionary_info – Get the information of using dictionary as an associative array.
  13. mecab_node_toarray – Get all elements of the node as an associated array.
  14. mecab_node_tostring – Get the formatted string of the node.
  15. mecab_node_current – [Iterator implementation] Return the current element.
  16. mecab_node_key – [Iterator implementation] Return the key of the current element.
  17. mecab_node_valid – [Iterator implementation] Check if there is a current element after calls to rewind() or next().
  18. mecab_node_rewind – [Iterator implementation] Set the node pointer to the beginning.
  19. mecab_node_next – Get the next node.
  20. mecab_node_prev – Get the previous node.
  21. mecab_node_next – Get the next node.
  22. mecab_node_enext – Get the enext node.
  23. mecab_node_bnext – Get the bnext node.
  24. mecab_node_rpath – Get the rpath.
  25. mecab_node_lpath – Get the lpath.
  26. mecab_node_begin_node_list – Get the given index of begin-node list.
  27. mecab_node_end_node_list – Get the given index of end-node list.
  28. mecab_node_surface – Get the surface.
  29. mecab_node_feature – Get the feature.
  30. mecab_node_id – Get the ID.
  31. mecab_node_length – Get the length of the surface.
  32. mecab_node_rlength – Get the length of the surface and its leading whitespace.
  33. mecab_node_rcattr – Get the ID of the right context.
  34. mecab_node_lcattr – Get the ID of the left context.
  35. mecab_node_posid – Get the ID of the Part-of-Speech. (node->posid is not used in MeCab-0.90)
  36. mecab_node_char_type – Get the type of the character.
  37. mecab_node_stat – Get the status.
  38. mecab_node_isbest – Determine whether the node is the best solution.
  39. mecab_node_alpha – Get the forward log probability.
  40. mecab_node_beta – Get the backward log probability.
  41. mecab_node_prob – Get the marginal probability.
  42. mecab_node_wcost – Get the word arising cost.
  43. mecab_node_cost – Get the cumulative cost.
  44. mecab_path_rnext – Get the rnext path.
  45. mecab_path_lnext – Get the lnext path.
  46. mecab_path_rnode – Get the rnode.
  47. mecab_path_lnode – Get the lnode.
  48. mecab_path_prob – Get the marginal probability.
  49. mecab_path_cost – Get the cumulative cost.

Leave a comment

Your comment