N-best hypothesis iterator object.
More...
#include <pocketsphinx.h>
N-best hypothesis iterator object.
◆ ps_nbest_next()
Move an N-best list iterator forward.
- Parameters
-
- Returns
- Updated N-best iterator, or NULL if no more hypotheses are available (iterator is freed ni this case).
◆ ps_nbest_hyp()
POCKETSPHINX_EXPORT const char * ps_nbest_hyp |
( |
ps_nbest_t * |
nbest, |
|
|
int32 * |
out_score |
|
) |
| |
Get the hypothesis string from an N-best list iterator.
- Parameters
-
nbest | N-best iterator. |
out_score | Output: Path score for this hypothesis. |
- Returns
- String containing next best hypothesis. Note that this pointer is only valid for the current iteration.
◆ ps_nbest_seg()
Get the word segmentation from an N-best list iterator.
- Parameters
-
- Returns
- Iterator over the next best hypothesis.
◆ ps_nbest_free()
POCKETSPHINX_EXPORT void ps_nbest_free |
( |
ps_nbest_t * |
nbest | ) |
|
Finish N-best search early, releasing resources.
- Parameters
-
The documentation for this struct was generated from the following file: