#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) |
Definition in file ngram_util.c.
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.
ndata | [in] N-gram data |
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.
ndata | [in] N-gram data |
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.
ndata | [in] N-gram data |
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.
ndata | [in] N-gram data |
Definition at line 97 of file ngram_util.c.
Referenced by print_info().