Main Page   Compound List   File List   Compound Members   File Members  

calc_prob_of.c File Reference

Return the probability of word, given a language model a context, and a forced backoff list. More...

#include <stdlib.h>
#include "evallm.h"
#include "idngram2lm.h"

Go to the source code of this file.

Functions

double calc_prob_of (id__t sought_word, id__t *context, int context_length, ng_t *ng, arpa_lm_t *arpa_ng, fb_info *fb_list, int *bo_case, int *acl, flag arpa_lm)


Detailed Description

Return the probability of word, given a language model a context, and a forced backoff list.

Definition in file calc_prob_of.c.


Function Documentation

double calc_prob_of id__t    sought_word,
id__t   context,
int    context_length,
ng_t   ng,
arpa_lm_t   arpa_ng,
fb_info   fb_list,
int *    bo_case,
int *    acl,
flag    arpa_lm
 

Definition at line 29 of file calc_prob_of.c.

References arpa_bo_ng_prob(), bo_ng_prob(), CLOSED_VOCAB, flag, free(), i, quit(), rr_malloc(), arpa_lm_t::vocab_type, and ng_t::vocab_type.

Referenced by compute_perplexity(), and validate().


Generated on Tue Dec 21 13:54:46 2004 by doxygen1.2.18