Searched refs:idx_num_ (Results 1 – 2 of 2) sorted by relevance
/packages/inputmethods/PinyinIME/jni/share/ |
D | ngram.cpp | 131 idx_num_ = 0; in NGram() 164 if (0 == idx_num_ || NULL == freq_codes_ || NULL == lma_freq_idx_) in save_ngram() 167 if (fwrite(&idx_num_, sizeof(size_t), 1, fp) != 1) in save_ngram() 174 if (fwrite(lma_freq_idx_, sizeof(CODEBOOK_TYPE), idx_num_, fp) != idx_num_) in save_ngram() 186 if (fread(&idx_num_, sizeof(size_t), 1, fp) != 1 ) in load_ngram() 196 (malloc(idx_num_ * sizeof(CODEBOOK_TYPE))); in load_ngram() 207 if (fread(lma_freq_idx_, sizeof(CODEBOOK_TYPE), idx_num_, fp) != idx_num_) in load_ngram() 272 idx_num_ = idx_now + 1; in build_unigram() 275 for (size_t pos = 0; pos < idx_num_; pos++) { in build_unigram() 316 lma_freq_idx_ = new CODEBOOK_TYPE[idx_num_]; in build_unigram() [all …]
|
/packages/inputmethods/PinyinIME/jni/include/ |
D | ngram.h | 52 size_t idx_num_; variable
|