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

init_ngram.c File Reference

Load N-gram file into memory and setup with word dictionary. More...

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

Include dependency graph for init_ngram.c:

Go to the source code of this file.

Functions

void init_ngram_bin (NGRAM_INFO *ndata, char *bin_ngram_file)
void init_ngram_arpa (NGRAM_INFO *ndata, char *ngram_lr_file, char *ngram_rl_file)
void make_voca_ref (NGRAM_INFO *ndata, WORD_INFO *winfo)


Detailed Description

Load N-gram file into memory and setup with word dictionary.

Author:
Akinobu LEE
Date:
Wed Feb 16 07:40:53 2005
Revision
1.1.1.1

Definition in file init_ngram.c.


Function Documentation

void init_ngram_bin NGRAM_INFO ndata,
char *  bin_ngram_file
 

Read and setup N-gram data from binary format file.

Parameters:
ndata [out] pointer to N-gram data structure to store the data
bin_ngram_file [in] file name of the binary N-gram

Definition at line 35 of file init_ngram.c.

Referenced by initialize_ngram().

void init_ngram_arpa NGRAM_INFO ndata,
char *  ngram_lr_file,
char *  ngram_rl_file
 

Read and setup N-gram data from ARPA format files of 2-gram and 3-gram.

Parameters:
ndata [out] pointer to N-gram data structure to store the data
ngram_lr_file [in] file name of ARPA 2-gram file
ngram_rl_file [in] file name of ARPA reverse 3-gram file

Definition at line 60 of file init_ngram.c.

Referenced by initialize_ngram().

void make_voca_ref NGRAM_INFO ndata,
WORD_INFO winfo
 

Make correspondence between word dictionary and N-gram vocabulary.

Parameters:
ndata [i/o] word/class N-gram, the unknown word information will be set.
winfo [i/o] word dictionary, the word-to-ngram-entry mapping will be done here.

Definition at line 100 of file init_ngram.c.

Referenced by initialize_ngram().


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