Main Page   Compound List   File List   Compound Members   File Members  

counts.c File Reference

Procedures to deal with counts correctly. More...

#include "ngram.h"
#include "idngram2lm.h"

Go to the source code of this file.

Functions

void store_count (flag four_byte_counts, int *count_table, int count_table_size, unsigned short *short_counts, int *long_counts, int position, int count)
int return_count (flag four_byte_counts, int *count_table, unsigned short *short_counts, int *long_counts, int position)


Detailed Description

Procedures to deal with counts correctly.

Procedures to deal with counts correctly. taking account of whether we are dealing with two- or four-byte counts.

Definition in file counts.c.


Function Documentation

int return_count flag    four_byte_counts,
int *    count_table,
unsigned short *    short_counts,
int *    long_counts,
int    position
 

Definition at line 48 of file counts.c.

References flag.

Referenced by bo_ng_prob(), compute_back_off(), compute_unigram(), increment_context(), and main().

void store_count flag    four_byte_counts,
int *    count_table,
int    count_table_size,
unsigned short *    short_counts,
int *    long_counts,
int    position,
int    count
 

Definition at line 30 of file counts.c.

References flag, and lookup_index_of().

Referenced by increment_context(), and main().


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