#include <stdio.h>
#include "rr_libs/general.h"
#include "rr_libs/sih.h"
#include "ngram.h"
#include "evallm.h"
#include <string.h>
#include <stdlib.h>
#include "idngram2lm.h"
Go to the source code of this file.
Defines | |
#define | BBO_FILE_VERSION 970314 |
Functions | |
void | load_lm (ng_t *ng, char *lm_filename) |
void | load_arpa_lm (arpa_lm_t *arpa_lm, char *lm_filename) |
Definition in file load_lm.c.
|
Definition at line 36 of file load_lm.c. Referenced by load_lm(). |
|
Read an ARPA LM file from a text format ARPA LM file Definition at line 316 of file load_lm.c. References bo_t, arpa_lm_t::bo_weight, CLOSED_VOCAB, arpa_lm_t::first_id, flag, fprintf(), free(), get_full_index(), i, arpa_lm_t::ind, index__t, j, arpa_lm_t::n, new_index(), arpa_lm_t::num_kgrams, OPEN_VOCAB_1, prob_t, arpa_lm_t::probs, arpa_lm_t::ptr_table, arpa_lm_t::ptr_table_size, quit(), rr_calloc(), rr_feof(), rr_iclose(), rr_iopen(), rr_malloc(), salloc(), sih_add(), sih_create(), sih_lookup(), arpa_lm_t::table_sizes, arpa_lm_t::vocab, arpa_lm_t::vocab_ht, arpa_lm_t::vocab_size, arpa_lm_t::vocab_type, and arpa_lm_t::word_id. Referenced by main(). |
|