Main Page   Compound List   File List   Compound Members   File Members  

compute_back_off.c File Reference

Compute the back off alphas for table n. More...

#include "ngram.h"
#include "idngram2lm.h"
#include "pc_libs/pc_general.h"
#include <stdlib.h>

Go to the source code of this file.

Functions

void compute_back_off (ng_t *ng, int n, int verbosity)


Detailed Description

Compute the back off alphas for table n.

Compute the back off alphas for table n, ie if called with n=2, then compute the bigram alphas

Definition in file compute_back_off.c.


Function Documentation

void compute_back_off ng_t   ng,
int    n,
int    verbosity
 

Definition at line 32 of file compute_back_off.c.

References ng_t::abs_disc_const, ABSOLUTE, ng_t::alpha_array, bo_ng_prob(), ng_t::bo_weight, ng_t::bo_weight4, ng_t::count, ng_t::count4, ng_t::count_table, current_pos, ng_t::disc_range, ng_t::discounting_method, end_pos, ng_t::first_id, ng_t::four_byte_alphas, ng_t::four_byte_counts, free(), get_full_index(), GOOD_TURING, ng_t::gt_disc_ratio, i, ng_t::ind, ng_t::lin_disc_ratio, LINEAR, ng_t::marg_counts, ng_t::marg_counts4, ng_t::max_alpha, ng_t::min_alpha, ng_t::num_kgrams, num_of_types(), ng_t::out_of_range_alphas, pc_message(), ng_t::ptr_table, ng_t::ptr_table_size, return_count(), rr_calloc(), short_alpha(), ng_t::size_of_alpha_array, verbosity, ng_t::vocab, ng_t::vocab_size, WITTEN_BELL, and ng_t::word_id.

Referenced by main().


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