Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

ngram_util.c File Reference

Output some N-gram information to stdout. More...

#include <sent/stddefs.h>
#include <sent/ngram2.h>

Include dependency graph for ngram_util.c:

Go to the source code of this file.

Functions

static int get_unigram_size (NGRAM_INFO *ndata)
static int get_bigram_size (NGRAM_INFO *ndata)
static int get_trigram_size (NGRAM_INFO *ndata)
void print_ngram_info (NGRAM_INFO *ndata)


Detailed Description

Output some N-gram information to stdout.

Author:
Akinobu LEE
Date:
Wed Feb 16 17:18:55 2005
Revision
1.2

Definition in file ngram_util.c.


Function Documentation

static int get_unigram_size NGRAM_INFO ndata  )  [static]
 

Estimate the total size of 1-gram part on memory. The resulting value may differ from the actual value, since the data sizes are hard coded.

Parameters:
ndata [in] N-gram data
Returns:
the estimated size on bytes.

Definition at line 36 of file ngram_util.c.

Referenced by print_ngram_info().

static int get_bigram_size NGRAM_INFO ndata  )  [static]
 

Estimate the total size of 2-gram part on memory. The resulting value may differ from the actual value, since the data sizes are hard coded.

Parameters:
ndata [in] N-gram data
Returns:
the estimated size on bytes.

Definition at line 52 of file ngram_util.c.

Referenced by print_ngram_info().

static int get_trigram_size NGRAM_INFO ndata  )  [static]
 

Estimate the total size of 3-gram part on memory. The resulting value may differ from the actual value, since the data sizes are hard coded.

Parameters:
ndata [in] N-gram data
Returns:
the estimated size on bytes.

Definition at line 82 of file ngram_util.c.

Referenced by print_ngram_info().

void print_ngram_info NGRAM_INFO ndata  ) 
 

Output misccelaneous information of N-gram to standard output.

Parameters:
ndata [in] N-gram data

Definition at line 97 of file ngram_util.c.

Referenced by print_info().


Generated on Tue Mar 28 16:03:21 2006 for Julius by  doxygen 1.4.2