PocketSphinx
5.0.0
A small speech recognizer
|
M-gram (yes, M-gram) iterator object. More...
#include <pocketsphinx/model.h>
Public Member Functions | |
POCKETSPHINX_EXPORT const int32 * | ngram_iter_get (ngram_iter_t *itor, int32 *out_score, int32 *out_bowt) |
POCKETSPHINX_EXPORT ngram_iter_t * | ngram_iter_successors (ngram_iter_t *itor) |
POCKETSPHINX_EXPORT ngram_iter_t * | ngram_iter_next (ngram_iter_t *itor) |
POCKETSPHINX_EXPORT void | ngram_iter_free (ngram_iter_t *itor) |
M-gram (yes, M-gram) iterator object.
This is an iterator over the N-Gram successors of a given word or N-1-Gram, that is why it is called "M" and not "N".
POCKETSPHINX_EXPORT const int32 * ngram_iter_get | ( | ngram_iter_t * | itor, |
int32 * | out_score, | ||
int32 * | out_bowt | ||
) |
Get information from the current M-gram in an iterator.
out_score | Output: Score for this M-gram (including any word penalty and language weight). |
out_bowt | Output: Backoff weight for this M-gram. |
POCKETSPHINX_EXPORT ngram_iter_t * ngram_iter_successors | ( | ngram_iter_t * | itor | ) |
Iterate over all M-gram successors of an M-1-gram.
itor | Iterator pointing to the M-1-gram to get successors of. |
POCKETSPHINX_EXPORT ngram_iter_t * ngram_iter_next | ( | ngram_iter_t * | itor | ) |
Advance an M-gram iterator.
POCKETSPHINX_EXPORT void ngram_iter_free | ( | ngram_iter_t * | itor | ) |
Terminate an M-gram iterator.