#include <stdio.h>
#include "rr_libs/general.h"
#include "ngram.h"
#include "idngram2lm.h"
Go to the source code of this file.
Functions | |
void | calc_mem_req (ng_t *ng, flag is_ascii) |
Function to calculate the memory required for each of the count tables. given a path to an id_ngram file, and a pointer to an array of cutoffs
Definition in file calc_mem_req.c.
|
Definition at line 36 of file calc_mem_req.c. References ngram::count, count_t, ng_t::cutoffs, flag, get_ngram(), i, ngram::id_array, ng_t::id_gram_filename, ng_t::id_gram_fp, j, ng_t::n, ngram::n, rr_calloc(), rr_feof(), rr_iclose(), rr_iopen(), rr_malloc(), and ng_t::table_sizes. Referenced by main(). |