Searched refs:kCodeBookSize (Results 1 – 2 of 2) sorted by relevance
/packages/inputmethods/PinyinIME/jni/share/ |
D | ngram.cpp | 66 idx = qsearch_nearest(code_book, freqs[pos], 0, kCodeBookSize - 1); in update_code_idx() 78 size_t *item_num = new size_t[kCodeBookSize]; in recalculate_kernel() 80 memset(item_num, 0, sizeof(size_t) * kCodeBookSize); in recalculate_kernel() 82 double *cb_new = new double[kCodeBookSize]; in recalculate_kernel() 84 memset(cb_new, 0, sizeof(double) * kCodeBookSize); in recalculate_kernel() 93 for (size_t code = 0; code < kCodeBookSize; code++) { in recalculate_kernel() 170 if (fwrite(freq_codes_, sizeof(LmaScoreType), kCodeBookSize, fp) != in save_ngram() 171 kCodeBookSize) in save_ngram() 198 (malloc(kCodeBookSize * sizeof(LmaScoreType))); in load_ngram() 203 if (fread(freq_codes_, sizeof(LmaScoreType), kCodeBookSize, fp) != in load_ngram() [all …]
|
/packages/inputmethods/PinyinIME/jni/include/ |
D | ngram.h | 28 static const size_t kCodeBookSize = 256; variable
|