1 #include <ngram_model.h>
5 #include "test_macros.h"
12 main(int argc, char *argv[])
17 /* Initialize a logmath object to pass to ngram_read */
18 lmath = logmath_init(1.0001, 0, 0);
20 /* Read a language model */
21 model = ngram_model_read(NULL, LMDIR "/100.arpa.DMP", NGRAM_DMP, lmath);
24 ngram_model_recode(model, "iso8859-1", "utf-8");
25 TEST_EQUAL(strcmp(ngram_word(model, 0), "<UNK>"), 0);
26 ngram_model_free(model);