Main Page   Compound List   File List   Compound Members   File Members  

calc_mem_req.c File Reference

Function to calculate the memory required for each of the count tables. More...

#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)


Detailed Description

Function to calculate the memory required for each of the count tables.

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.


Function Documentation

void calc_mem_req ng_t   ng,
flag    is_ascii
 

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().


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