MeCab
|
Node structure. More...
#include <mecab.h>
Public Attributes | |
struct mecab_node_t * | prev |
pointer to the previous node. More... | |
struct mecab_node_t * | next |
pointer to the next node. More... | |
struct mecab_node_t * | enext |
pointer to the node which ends at the same position. More... | |
struct mecab_node_t * | bnext |
pointer to the node which starts at the same position. More... | |
struct mecab_path_t * | rpath |
pointer to the right path. More... | |
struct mecab_path_t * | lpath |
pointer to the right path. More... | |
const char * | surface |
surface string. More... | |
const char * | feature |
feature string More... | |
unsigned int | id |
unique node id More... | |
unsigned short | length |
length of the surface form. More... | |
unsigned short | rlength |
length of the surface form including white space before the morph. More... | |
unsigned short | rcAttr |
right attribute id More... | |
unsigned short | lcAttr |
left attribute id More... | |
unsigned short | posid |
unique part of speech id. More... | |
unsigned char | char_type |
character type More... | |
unsigned char | stat |
status of this model. More... | |
unsigned char | isbest |
set 1 if this node is best node. More... | |
float | alpha |
forward accumulative log summation. More... | |
float | beta |
backward accumulative log summation. More... | |
float | prob |
marginal probability. More... | |
short | wcost |
word cost. More... | |
long | cost |
best accumulative cost from bos node to this node. More... | |
Node structure.
float mecab_node_t::alpha |
forward accumulative log summation.
This value is only available when MECAB_MARGINAL_PROB is passed.
float mecab_node_t::beta |
backward accumulative log summation.
This value is only available when MECAB_MARGINAL_PROB is passed.
struct mecab_node_t* mecab_node_t::bnext |
pointer to the node which starts at the same position.
unsigned char mecab_node_t::char_type |
character type
long mecab_node_t::cost |
best accumulative cost from bos node to this node.
struct mecab_node_t* mecab_node_t::enext |
pointer to the node which ends at the same position.
const char* mecab_node_t::feature |
feature string
unsigned int mecab_node_t::id |
unique node id
unsigned char mecab_node_t::isbest |
set 1 if this node is best node.
unsigned short mecab_node_t::lcAttr |
left attribute id
unsigned short mecab_node_t::length |
length of the surface form.
struct mecab_path_t* mecab_node_t::lpath |
pointer to the right path.
this value is NULL if MECAB_ONE_BEST mode.
struct mecab_node_t* mecab_node_t::next |
pointer to the next node.
unsigned short mecab_node_t::posid |
unique part of speech id.
This value is defined in "pos.def" file.
struct mecab_node_t* mecab_node_t::prev |
pointer to the previous node.
float mecab_node_t::prob |
marginal probability.
This value is only available when MECAB_MARGINAL_PROB is passed.
unsigned short mecab_node_t::rcAttr |
right attribute id
unsigned short mecab_node_t::rlength |
length of the surface form including white space before the morph.
struct mecab_path_t* mecab_node_t::rpath |
pointer to the right path.
this value is NULL if MECAB_ONE_BEST mode.
unsigned char mecab_node_t::stat |
status of this model.
This value is MECAB_NOR_NODE, MECAB_UNK_NODE, MECAB_BOS_NODE, MECAB_EOS_NODE, or MECAB_EON_NODE.
const char* mecab_node_t::surface |
surface string.
this value is not 0 terminated. You can get the length with length/rlength members.
short mecab_node_t::wcost |
word cost.