PocketSphinx  5prealpha
ngram_search_fwdtree.c File Reference

Lexicon tree search. More...

#include <string.h>
#include <assert.h>
#include <sphinxbase/ckd_alloc.h>
#include <sphinxbase/listelem_alloc.h>
#include <sphinxbase/err.h>
#include "ngram_search_fwdtree.h"
#include "phone_loop_search.h"

Go to the source code of this file.

Macros

#define __CHAN_DUMP__   0
 
#define chan_v_eval(chan)   hmm_vit_eval(&(chan)->hmm)
 

Functions

void ngram_fwdtree_init (ngram_search_t *ngs)
 Initialize N-Gram search for fwdtree decoding.
 
void ngram_fwdtree_deinit (ngram_search_t *ngs)
 Release memory associated with fwdtree decoding.
 
int ngram_fwdtree_reinit (ngram_search_t *ngs)
 Rebuild search structures for updated language models.
 
void ngram_fwdtree_start (ngram_search_t *ngs)
 Start fwdtree decoding for an utterance.
 
int ngram_fwdtree_search (ngram_search_t *ngs, int frame_idx)
 Search one frame forward in an utterance. More...
 
void ngram_fwdtree_finish (ngram_search_t *ngs)
 Finish fwdtree decoding for an utterance.
 

Detailed Description

Lexicon tree search.

Definition in file ngram_search_fwdtree.c.

Function Documentation

int ngram_fwdtree_search ( ngram_search_t ngs,
int  frame_idx 
)

Search one frame forward in an utterance.

Returns
Number of frames searched (either 0 or 1).

Definition at line 1455 of file ngram_search_fwdtree.c.

References acmod_score(), ngram_search_s::best_score, ngram_search_s::n_frame, ngram_search_mark_bptable(), ngram_search_s::st, and WORSE_THAN.