mecab_node_t

Node structure

Members

Variables

alpha
float alpha;

forward accumulative log summation. This value is only available when MECAB_MARGINAL_PROB is passed.

beta
float beta;

backward accumulative log summation. This value is only available when MECAB_MARGINAL_PROB is passed.

bnext
mecab_node_t* bnext;

pointer to the node which starts at the same position.

char_type
ubyte char_type;

character type

cost
long cost;

best accumulative cost from bos node to this node.

enext
mecab_node_t* enext;

pointer to the node which ends at the same position.

feature
const(char)* feature;

feature string

id
uint id;

unique node id

isbest
ubyte isbest;

set 1 if this node is best node.

lcAttr
ushort lcAttr;

left attribute id

length
ushort length;

length of the surface form.

lpath
mecab_path_t* lpath;

pointer to the right path. this value is NULL if MECAB_ONE_BEST mode.

next
mecab_node_t* next;

pointer to the next node.

posid
ushort posid;

unique part of speech id. This value is defined in "pos.def" file.

prev
mecab_node_t* prev;

pointer to the previous node.

prob
float prob;

marginal probability. This value is only available when MECAB_MARGINAL_PROB is passed.

rcAttr
ushort rcAttr;

right attribute id

rlength
ushort rlength;

length of the surface form including white space before the morph.

rpath
mecab_path_t* rpath;

pointer to the right path. this value is NULL if MECAB_ONE_BEST mode.

stat
ubyte stat;

status of this model. This value is MECAB_NOR_NODE, MECAB_UNK_NODE, MECAB_BOS_NODE, MECAB_EOS_NODE, or MECAB_EON_NODE.

surface
const(char)* surface;

surface string. this value is not 0 terminated. You can get the length with length/rlength members.

wcost
short wcost;

word cost.

Meta