PocketSphinx
5.0.0
A small speech recognizer
|
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_t * | ps_latnode_exits (ps_latnode_t *node) |
POCKETSPHINX_EXPORT ps_latlink_iter_t * | ps_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) |
Node in a word lattice.
A node corresponds to a number of hypothesized instances of a word which all share the same starting point.
POCKETSPHINX_EXPORT const char * ps_latnode_word | ( | ps_lattice_t * | dag, |
ps_latnode_t * | node | ||
) |
Get word string for this node.
dag | Lattice to which node belongs. |
node | Node inquired about. |
POCKETSPHINX_EXPORT const char * ps_latnode_baseword | ( | ps_lattice_t * | dag, |
ps_latnode_t * | node | ||
) |
Get base word string for this node.
dag | Lattice to which node belongs. |
node | Node inquired about. |
POCKETSPHINX_EXPORT ps_latlink_iter_t * ps_latnode_exits | ( | ps_latnode_t * | node | ) |
Iterate over exits from this node.
node | Node inquired about. |
POCKETSPHINX_EXPORT ps_latlink_iter_t * ps_latnode_entries | ( | ps_latnode_t * | node | ) |
Iterate over entries to this node.
node | Node inquired about. |
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.
dag | Lattice to which node belongs. |
node | Node inquired about. |
out_link | Output: exit link with highest posterior probability |