Class: ViterbiNode

ViterbiNode


new ViterbiNode(node_name, node_cost, start_pos, length, type, left_id, right_id, surface_form)

ViterbiNode is a node of ViterbiLattice

Parameters:
Name Type Description
node_name number

Word ID

node_cost number

Word cost to generate

start_pos number

Start position from 1

length number

Word length

type string

Node type (KNOWN, UNKNOWN, BOS, EOS, ...)

left_id number

Left context ID

right_id number

Right context ID

surface_form string

Surface form of this word