Searched refs:ch_pos (Results 1 – 4 of 4) sorted by relevance
265 bool MatrixSearch::reset_search(size_t ch_pos, bool clear_fixed_this_step, in reset_search() argument268 if (!inited_ || ch_pos > pys_decoded_len_ || ch_pos >= kMaxRowNum) in reset_search()271 if (0 == ch_pos) { in reset_search()276 if (clear_dmi_this_step && matrix_[ch_pos].dmi_num > 0) { in reset_search()277 dict_handles_to_clear = dmi_pool_[matrix_[ch_pos].dmi_pos].dict_handles; in reset_search()282 if (pys_decoded_len_ > ch_pos && !clear_dmi_this_step) { in reset_search()284 if (matrix_[ch_pos + 1].dmi_num > 0) { in reset_search()286 dmi_pool_[matrix_[ch_pos + 1].dmi_pos].dict_handles; in reset_search()291 dict_trie_->reset_milestones(ch_pos, dict_handles_to_clear[0]); in reset_search()293 user_dict_->reset_milestones(ch_pos, dict_handles_to_clear[1]); in reset_search()[all …]
812 size_t ch_pos = lma_num + homo_pos; in get_lpis() local813 lma_buf[ch_pos].id = in get_lpis()815 lma_buf[ch_pos].lma_len = 1; in get_lpis()816 lma_buf[ch_pos].psb = in get_lpis()817 static_cast<LmaScoreType>(ngram.get_uni_psb(lma_buf[ch_pos].id)); in get_lpis()826 size_t ch_pos = lma_num + homo_pos; in get_lpis() local828 lma_buf[ch_pos].id = get_lemma_id(node_homo_off + homo_pos); in get_lpis()829 lma_buf[ch_pos].lma_len = splid_str_len; in get_lpis()830 lma_buf[ch_pos].psb = in get_lpis()831 static_cast<LmaScoreType>(ngram.get_uni_psb(lma_buf[ch_pos].id)); in get_lpis()
265 bool reset_search(size_t ch_pos, bool clear_fixed_this_step,