#include "evallm.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
void | compute_perplexity (ng_t *ng, arpa_lm_t *arpa_ng, char *text_stream_filename, char *probs_stream_filename, char *annotation_filename, char *oov_filename, char *fb_list_filename, flag backoff_from_unk_inc, flag backoff_from_unk_exc, flag backoff_from_ccs_inc, flag backoff_from_ccs_exc, flag arpa_lm, flag include_unks, double log_base) |
Definition in file perplexity.c.
|
Definition at line 28 of file perplexity.c. References calc_prob_of(), CLOSED_VOCAB, ng_t::context_cue, arpa_lm_t::context_cue, decode_bo_case(), flag, fprintf(), free(), gen_fb_list(), i, ng_t::n, arpa_lm_t::n, quit(), rr_calloc(), rr_feof(), rr_fexists(), rr_iclose(), rr_iopen(), rr_malloc(), rr_oclose(), rr_oopen(), sih_lookup(), ng_t::vocab, arpa_lm_t::vocab, ng_t::vocab_ht, arpa_lm_t::vocab_ht, ng_t::vocab_size, arpa_lm_t::vocab_size, ng_t::vocab_type, and arpa_lm_t::vocab_type. Referenced by main(). |