MeCab
Public Attributes | List of all members
mecab_node_t Struct Reference

Node structure. More...

#include <mecab.h>

Public Attributes

struct mecab_node_tprev
 pointer to the previous node. More...
 
struct mecab_node_tnext
 pointer to the next node. More...
 
struct mecab_node_tenext
 pointer to the node which ends at the same position. More...
 
struct mecab_node_tbnext
 pointer to the node which starts at the same position. More...
 
struct mecab_path_trpath
 pointer to the right path. More...
 
struct mecab_path_tlpath
 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...
 

Detailed Description

Node structure.

Member Data Documentation

◆ alpha

float mecab_node_t::alpha

forward accumulative log summation.

This value is only available when MECAB_MARGINAL_PROB is passed.

◆ beta

float mecab_node_t::beta

backward accumulative log summation.

This value is only available when MECAB_MARGINAL_PROB is passed.

◆ bnext

struct mecab_node_t* mecab_node_t::bnext

pointer to the node which starts at the same position.

◆ char_type

unsigned char mecab_node_t::char_type

character type

◆ cost

long mecab_node_t::cost

best accumulative cost from bos node to this node.

◆ enext

struct mecab_node_t* mecab_node_t::enext

pointer to the node which ends at the same position.

◆ feature

const char* mecab_node_t::feature

feature string

◆ id

unsigned int mecab_node_t::id

unique node id

◆ isbest

unsigned char mecab_node_t::isbest

set 1 if this node is best node.

◆ lcAttr

unsigned short mecab_node_t::lcAttr

left attribute id

◆ length

unsigned short mecab_node_t::length

length of the surface form.

◆ lpath

struct mecab_path_t* mecab_node_t::lpath

pointer to the right path.

this value is NULL if MECAB_ONE_BEST mode.

◆ next

struct mecab_node_t* mecab_node_t::next

pointer to the next node.

◆ posid

unsigned short mecab_node_t::posid

unique part of speech id.

This value is defined in "pos.def" file.

◆ prev

struct mecab_node_t* mecab_node_t::prev

pointer to the previous node.

◆ prob

float mecab_node_t::prob

marginal probability.

This value is only available when MECAB_MARGINAL_PROB is passed.

◆ rcAttr

unsigned short mecab_node_t::rcAttr

right attribute id

◆ rlength

unsigned short mecab_node_t::rlength

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

◆ rpath

struct mecab_path_t* mecab_node_t::rpath

pointer to the right path.

this value is NULL if MECAB_ONE_BEST mode.

◆ stat

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.

◆ surface

const char* mecab_node_t::surface

surface string.

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

◆ wcost

short mecab_node_t::wcost

word cost.


The documentation for this struct was generated from the following file: