struct Wakame::Lib::MeCabNodeT
- Wakame::Lib::MeCabNodeT
- Struct
- Value
- Object
Overview
Underlying structure for Wakame::MeCabNode
. Represents struct mecab_node_t
in C.
All of these attributes can be accessed directly from Wakame::MeCabNode
without
retrieving this struct from its pointer. DO NOT use this struct in your actual code!
Defined in:
wakame/lib/struct.crInstance Method Summary
-
#alpha : Float32
Forward accumulative log summation.
-
#beta : Float32
Backward accumulative log summation.
-
#bnext : Pointer(Wakame::Lib::MeCabNodeT)
Pointer to the node which starts at the same position.
-
#char_type : UInt8
Character type
-
#cost : LibC::Long
Best accumulative cost from bos node to this node.
-
#enext : Pointer(Wakame::Lib::MeCabNodeT)
Pointer to the node which ends at the same position.
-
#feature : Pointer(LibC::Char)
Feature string
-
#id : UInt32
Unique node id
-
#isbest : UInt8
Set 1 if this node is the best node.
-
#lc_attr : UInt16
Left attribute id
-
#length : UInt16
Length of the surface form.
-
#lpath : Pointer(Wakame::Lib::MeCabPathT)
Pointer to the right path.
-
#next : Pointer(Wakame::Lib::MeCabNodeT)
Pointer to the next node.
-
#posid : UInt16
Unique part of speech id.
-
#prev : Pointer(Wakame::Lib::MeCabNodeT)
Pointer to the previous node.
-
#prob : Float32
Marginal probability
-
#rc_attr : UInt16
Right attribute id
-
#rlength : UInt16
Length of the surface form including the white space before the morph.
-
#rpath : Pointer(Wakame::Lib::MeCabPathT)
Pointer to the right path.
-
#stat : UInt8
Status of this model.
-
#surface : Pointer(LibC::Char)
Surface string
-
#wcost : Int16
Word cost
Instance Method Detail
Forward accumulative log summation.
This value is only available when MECAB_MARGINAL_PROB is passed.
Backward accumulative log summation.
This value is only available when MECAB_MARGINAL_PROB is passed.
Pointer to the node which starts at the same position.
Pointer to the right path.
This value is NULL in MECAB_ONE_BEST mode.
Marginal probability
This value is only available when MECAB_MARGINAL_PROB is passed.
Pointer to the right path.
This value is NULL in MECAB_ONE_BEST mode.
Status of this model.
This can be either MECAB_NOR_NODE, MECAB_UNK_NODE, MECAB_BOS_NODE, MECAB_EOS_NODE, or MECAB_EON_NODE.
Surface string
This value is not 0 terminated. You can get the length from the length/rlength members.