PocketSphinx 5prealpha
ps_latnode_s Struct Reference

DAG nodes. More...

#include <ps_lattice_internal.h>

Data Fields

int32 id
 Unique id for this node. More...
 
int32 wid
 Dictionary word id. More...
 
int32 basewid
 Dictionary base word id. More...
 
int32 fef
 First end frame. More...
 
int32 lef
 Last end frame. More...
 
frame_idx_t sf
 Start frame. More...
 
int16 reachable
 From. More...
 
int32 node_id
 Node from fsg model, used to map lattice back to model. More...
 
union {
   glist_t   velist
 List of history entries with different lmstate (tst only) More...
 
   int32   fanin
 Number nodes with links to this node. More...
 
   int32   rem_score
 Estimated best score from node.sf to end. More...
 
   int32   best_exit
 Best exit score (used for final nodes only) More...
 
info
 
latlink_list_texits
 Links out of this node. More...
 
latlink_list_tentries
 Links into this node. More...
 
struct ps_latnode_salt
 Node with alternate pronunciation for this word. More...
 
struct ps_latnode_snext
 Next node in DAG (no ordering implied) More...
 

Detailed Description

DAG nodes.

A node corresponds to a number of hypothesized instances of a word which all share the same starting point.

Definition at line 113 of file ps_lattice_internal.h.

Field Documentation

◆ alt

struct ps_latnode_s* ps_latnode_s::alt

Node with alternate pronunciation for this word.

Definition at line 132 of file ps_lattice_internal.h.

Referenced by ngram_search_lattice().

◆ basewid

◆ best_exit

int32 ps_latnode_s::best_exit

Best exit score (used for final nodes only)

Definition at line 127 of file ps_lattice_internal.h.

◆ entries

◆ exits

◆ fanin

int32 ps_latnode_s::fanin

Number nodes with links to this node.

Definition at line 125 of file ps_lattice_internal.h.

Referenced by ps_lattice_reverse_edges(), ps_lattice_reverse_next(), ps_lattice_traverse_edges(), and ps_lattice_traverse_next().

◆ fef

int32 ps_latnode_s::fef

First end frame.

Definition at line 118 of file ps_lattice_internal.h.

Referenced by ngram_search_lattice(), ps_astar_next(), ps_latnode_times(), ps_lattice_read(), and ps_lattice_write().

◆ id

int32 ps_latnode_s::id

Unique id for this node.

Definition at line 114 of file ps_lattice_internal.h.

Referenced by ps_lattice_delete_unreachable(), ps_lattice_read(), ps_lattice_write(), and ps_lattice_write_htk().

◆ lef

int32 ps_latnode_s::lef

◆ next

◆ node_id

int32 ps_latnode_s::node_id

Node from fsg model, used to map lattice back to model.

Definition at line 122 of file ps_lattice_internal.h.

Referenced by ps_lattice_write().

◆ reachable

int16 ps_latnode_s::reachable

◆ rem_score

int32 ps_latnode_s::rem_score

Estimated best score from node.sf to end.

Definition at line 126 of file ps_lattice_internal.h.

Referenced by ps_astar_start().

◆ sf

◆ velist

glist_t ps_latnode_s::velist

List of history entries with different lmstate (tst only)

Definition at line 124 of file ps_lattice_internal.h.

◆ wid

int32 ps_latnode_s::wid

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