PocketSphinx 5prealpha
|
Multi-level alignment structure. More...
Go to the source code of this file.
Macros | |
#define | VECTOR_GROW 10 |
Functions | |
ps_alignment_t * | ps_alignment_init (dict2pid_t *d2p) |
Create a new, empty alignment. More... | |
int | ps_alignment_free (ps_alignment_t *al) |
Release an alignment. More... | |
int | ps_alignment_add_word (ps_alignment_t *al, int32 wid, int duration) |
Append a word. More... | |
int | ps_alignment_populate (ps_alignment_t *al) |
Populate lower layers using available word information. More... | |
int | ps_alignment_populate_ci (ps_alignment_t *al) |
Populate lower layers using context-independent phones. More... | |
int | ps_alignment_propagate (ps_alignment_t *al) |
Propagate timing information up from state sequence. More... | |
int | ps_alignment_n_words (ps_alignment_t *al) |
Number of words. More... | |
int | ps_alignment_n_phones (ps_alignment_t *al) |
Number of phones. More... | |
int | ps_alignment_n_states (ps_alignment_t *al) |
Number of states. More... | |
ps_alignment_iter_t * | ps_alignment_words (ps_alignment_t *al) |
Iterate over the alignment starting at the first word. More... | |
ps_alignment_iter_t * | ps_alignment_phones (ps_alignment_t *al) |
Iterate over the alignment starting at the first phone. More... | |
ps_alignment_iter_t * | ps_alignment_states (ps_alignment_t *al) |
Iterate over the alignment starting at the first state. More... | |
ps_alignment_entry_t * | ps_alignment_iter_get (ps_alignment_iter_t *itor) |
Get the alignment entry pointed to by an iterator. More... | |
int | ps_alignment_iter_free (ps_alignment_iter_t *itor) |
Release an iterator before completing all iterations. More... | |
ps_alignment_iter_t * | ps_alignment_iter_goto (ps_alignment_iter_t *itor, int pos) |
Move alignment iterator to given index. More... | |
ps_alignment_iter_t * | ps_alignment_iter_next (ps_alignment_iter_t *itor) |
Move an alignment iterator forward. More... | |
ps_alignment_iter_t * | ps_alignment_iter_prev (ps_alignment_iter_t *itor) |
Move an alignment iterator back. More... | |
ps_alignment_iter_t * | ps_alignment_iter_up (ps_alignment_iter_t *itor) |
Get a new iterator starting at the parent of the current node. More... | |
ps_alignment_iter_t * | ps_alignment_iter_down (ps_alignment_iter_t *itor) |
Get a new iterator starting at the first child of the current node. More... | |
Multi-level alignment structure.
Definition in file ps_alignment.c.
#define VECTOR_GROW 10 |
Definition at line 71 of file ps_alignment.c.
int ps_alignment_add_word | ( | ps_alignment_t * | al, |
int32 | wid, | ||
int | duration | ||
) |
Append a word.
Definition at line 108 of file ps_alignment.c.
int ps_alignment_free | ( | ps_alignment_t * | al | ) |
ps_alignment_t * ps_alignment_init | ( | dict2pid_t * | d2p | ) |
Create a new, empty alignment.
Definition at line 51 of file ps_alignment.c.
References dict2pid_retain().
ps_alignment_iter_t * ps_alignment_iter_down | ( | ps_alignment_iter_t * | itor | ) |
Get a new iterator starting at the first child of the current node.
Definition at line 481 of file ps_alignment.c.
int ps_alignment_iter_free | ( | ps_alignment_iter_t * | itor | ) |
Release an iterator before completing all iterations.
Definition at line 417 of file ps_alignment.c.
Referenced by ps_alignment_iter_goto(), ps_alignment_iter_next(), and ps_alignment_iter_prev().
ps_alignment_entry_t * ps_alignment_iter_get | ( | ps_alignment_iter_t * | itor | ) |
Get the alignment entry pointed to by an iterator.
Definition at line 411 of file ps_alignment.c.
ps_alignment_iter_t * ps_alignment_iter_goto | ( | ps_alignment_iter_t * | itor, |
int | pos | ||
) |
Move alignment iterator to given index.
Definition at line 424 of file ps_alignment.c.
References ps_alignment_iter_free().
ps_alignment_iter_t * ps_alignment_iter_next | ( | ps_alignment_iter_t * | itor | ) |
Move an alignment iterator forward.
Definition at line 437 of file ps_alignment.c.
References ps_alignment_iter_free().
ps_alignment_iter_t * ps_alignment_iter_prev | ( | ps_alignment_iter_t * | itor | ) |
Move an alignment iterator back.
Definition at line 449 of file ps_alignment.c.
References ps_alignment_iter_free().
ps_alignment_iter_t * ps_alignment_iter_up | ( | ps_alignment_iter_t * | itor | ) |
Get a new iterator starting at the parent of the current node.
Definition at line 461 of file ps_alignment.c.
int ps_alignment_n_phones | ( | ps_alignment_t * | al | ) |
Number of phones.
Definition at line 357 of file ps_alignment.c.
int ps_alignment_n_states | ( | ps_alignment_t * | al | ) |
Number of states.
Definition at line 363 of file ps_alignment.c.
int ps_alignment_n_words | ( | ps_alignment_t * | al | ) |
Number of words.
Definition at line 351 of file ps_alignment.c.
ps_alignment_iter_t * ps_alignment_phones | ( | ps_alignment_t * | al | ) |
Iterate over the alignment starting at the first phone.
Definition at line 383 of file ps_alignment.c.
int ps_alignment_populate | ( | ps_alignment_t * | al | ) |
Populate lower layers using available word information.
Definition at line 129 of file ps_alignment.c.
int ps_alignment_populate_ci | ( | ps_alignment_t * | al | ) |
Populate lower layers using context-independent phones.
Definition at line 247 of file ps_alignment.c.
int ps_alignment_propagate | ( | ps_alignment_t * | al | ) |
Propagate timing information up from state sequence.
Definition at line 313 of file ps_alignment.c.
ps_alignment_iter_t * ps_alignment_states | ( | ps_alignment_t * | al | ) |
Iterate over the alignment starting at the first state.
Definition at line 397 of file ps_alignment.c.
ps_alignment_iter_t * ps_alignment_words | ( | ps_alignment_t * | al | ) |
Iterate over the alignment starting at the first word.
Definition at line 369 of file ps_alignment.c.