struct Wakame::MeCabNode

Overview

Wrapper for the Wakame::Lib::MeCabNodeT structure holding attributes of the parsed node.

Included Modules

Defined in:

wakame/node.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Lib::MeCabNodeT), tagger : Pointer(LibMeCab::T) | Nil = nil) #

[View source]

Instance Method Detail

def alpha : Float32 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#alpha for details.


[View source]
def beta : Float32 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#beta for details.


[View source]
def bnext : MeCabNode | Nil #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure, resolves the pointer returned, and returns the wrapped variant of it.

See Wakame::Lib::MeCabNodeT#bnext for details on the underlying value.


[View source]
def bos_node? : Bool #

Calls NodeStatus#bos_node? of the #stat.


[View source]
def char_type : UInt8 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#char_type for details.


[View source]
def cost : LibC::Long #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#cost for details.


[View source]
def enext : MeCabNode | Nil #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure, resolves the pointer returned, and returns the wrapped variant of it.

See Wakame::Lib::MeCabNodeT#enext for details on the underlying value.


[View source]
def eon_node? : Bool #

Calls NodeStatus#eon_node? of the #stat.


[View source]
def eos_node? : Bool #

Calls NodeStatus#eos_node? of the #stat.


[View source]
def feature : String #

Feature string


[View source]
def formatted : String #

Formatted variant of this node. The format can be specified with the options output_format_type or node_format when instantiating the Wakame::MeCab class.


[View source]
def id : UInt32 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#id for details.


[View source]
def is_best? : Bool #

Returns true if this node is the best node.


[View source]
def lc_attr : UInt16 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#lc_attr for details.


[View source]
def length : UInt16 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#length for details.


[View source]
def lpath : MeCabPath | Nil #

This method forwards the call to the underlying Wakame::Lib::MeCabPathT structure, resolves the pointer returned, and returns the wrapped variant of it.

See Wakame::Lib::MeCabPathT#lpath for details on the underlying value.


[View source]
def next : MeCabNode | Nil #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure, resolves the pointer returned, and returns the wrapped variant of it.

See Wakame::Lib::MeCabNodeT#next for details on the underlying value.


[View source]
def normal_node? : Bool #

[View source]
def pointer : Pointer(Wakame::Lib::MeCabNodeT) #

Pointer to the underlying structure.


[View source]
def posid : UInt16 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#posid for details.


[View source]
def prev : MeCabNode | Nil #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure, resolves the pointer returned, and returns the wrapped variant of it.

See Wakame::Lib::MeCabNodeT#prev for details on the underlying value.


[View source]
def prob : Float32 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#prob for details.


[View source]
def rc_attr : UInt16 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#rc_attr for details.


[View source]
def rlength : UInt16 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#rlength for details.


[View source]
def rpath : MeCabPath | Nil #

This method forwards the call to the underlying Wakame::Lib::MeCabPathT structure, resolves the pointer returned, and returns the wrapped variant of it.

See Wakame::Lib::MeCabPathT#rpath for details on the underlying value.


[View source]

Status of this model.


[View source]
def surface : String #

Surface string


[View source]
def unknown_node? : Bool #

[View source]
def wcost : Int16 #

This method forwards the call to the underlying Wakame::Lib::MeCabNodeT structure.

See Wakame::Lib::MeCabNodeT#wcost for details.


[View source]