Searched refs:kCodeBookSize (Results 1 – 3 of 3) sorted by relevance
| /OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/share/ |
| H A 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 …]
|
| /OK3568_Linux_fs/app/forlinx/flapp/src/keyboard/pinyin/include/ |
| H A D | ngram.h | 28 static const size_t kCodeBookSize = 256; variable
|
| /OK3568_Linux_fs/app/forlinx/DWKeyboard/include/pinyin/include/ |
| H A D | ngram.h | 28 static const size_t kCodeBookSize = 256; variable
|