#include <sent/stddefs.h>
#include <sent/ngram2.h>
#include <sent/vocabulary.h>
init_ngram.cのインクルード依存関係図

関数 | |
| 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) |
init_ngram.c で定義されています。
| void init_ngram_bin | ( | NGRAM_INFO * | ndata, | |
| char * | bin_ngram_file | |||
| ) |
Read and setup N-gram data from binary format file.
| ndata | [out] pointer to N-gram data structure to store the data | |
| bin_ngram_file | [in] file name of the binary N-gram |
init_ngram.c の 35 行で定義されています。
参照元 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.
| 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 |
init_ngram.c の 60 行で定義されています。
参照元 initialize_ngram().
| void make_voca_ref | ( | NGRAM_INFO * | ndata, | |
| WORD_INFO * | winfo | |||
| ) |
Make correspondence between word dictionary and N-gram vocabulary.
| 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. |
init_ngram.c の 100 行で定義されています。
参照元 initialize_ngram().
1.5.0