PocketSphinx  5.0.0
A small speech recognizer
Public Member Functions | List of all members
ps_latnode_t Struct Reference

Node in a word lattice. More...

#include <pocketsphinx/lattice.h>

Public Member Functions

POCKETSPHINX_EXPORT const char * ps_latnode_word (ps_lattice_t *dag, ps_latnode_t *node)
 
POCKETSPHINX_EXPORT const char * ps_latnode_baseword (ps_lattice_t *dag, ps_latnode_t *node)
 
POCKETSPHINX_EXPORT ps_latlink_iter_tps_latnode_exits (ps_latnode_t *node)
 
POCKETSPHINX_EXPORT ps_latlink_iter_tps_latnode_entries (ps_latnode_t *node)
 
POCKETSPHINX_EXPORT int32 ps_latnode_prob (ps_lattice_t *dag, ps_latnode_t *node, ps_latlink_t **out_link)
 

Detailed Description

Node in a word lattice.

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

Member Function Documentation

◆ ps_latnode_word()

POCKETSPHINX_EXPORT const char * ps_latnode_word ( ps_lattice_t dag,
ps_latnode_t node 
)

Get word string for this node.

Parameters
dagLattice to which node belongs.
nodeNode inquired about.
Returns
Word string for this node (possibly a pronunciation variant).

◆ ps_latnode_baseword()

POCKETSPHINX_EXPORT const char * ps_latnode_baseword ( ps_lattice_t dag,
ps_latnode_t node 
)

Get base word string for this node.

Parameters
dagLattice to which node belongs.
nodeNode inquired about.
Returns
Base word string for this node.

◆ ps_latnode_exits()

POCKETSPHINX_EXPORT ps_latlink_iter_t * ps_latnode_exits ( ps_latnode_t node)

Iterate over exits from this node.

Parameters
nodeNode inquired about.
Returns
Iterator over exit links from this node.

◆ ps_latnode_entries()

POCKETSPHINX_EXPORT ps_latlink_iter_t * ps_latnode_entries ( ps_latnode_t node)

Iterate over entries to this node.

Parameters
nodeNode inquired about.
Returns
Iterator over entry links to this node.

◆ ps_latnode_prob()

POCKETSPHINX_EXPORT int32 ps_latnode_prob ( ps_lattice_t dag,
ps_latnode_t node,
ps_latlink_t **  out_link 
)

Get best posterior probability and associated acoustic score from a lattice node.

Parameters
dagLattice to which node belongs.
nodeNode inquired about.
out_linkOutput: exit link with highest posterior probability
Returns
Posterior probability of the best link exiting this node. Log is expressed in the log-base used in the decoder. To convert to linear floating-point, use logmath_exp(ps_lattice_get_logmath(), pprob).

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