Searched refs:psb (Results 1 – 8 of 8) sorted by relevance
36 if ((static_cast<const LmaPsbItem*>(p1))->psb > in cmp_lpi_with_psb()37 (static_cast<const LmaPsbItem*>(p2))->psb) in cmp_lpi_with_psb()39 if ((static_cast<const LmaPsbItem*>(p1))->psb < in cmp_lpi_with_psb()40 (static_cast<const LmaPsbItem*>(p2))->psb) in cmp_lpi_with_psb()52 size_t up1 = item1->psb * (item2->lma_len); in cmp_lpi_with_unified_psb()53 size_t up2 = item2->psb * (item1->lma_len); in cmp_lpi_with_unified_psb()137 if ((static_cast<const NPredictItem*>(p1))->psb > in cmp_npre_by_score()138 (static_cast<const NPredictItem*>(p2))->psb) in cmp_npre_by_score()141 if ((static_cast<const NPredictItem*>(p1))->psb < in cmp_npre_by_score()142 (static_cast<const NPredictItem*>(p2))->psb) in cmp_npre_by_score()[all …]
816 LmaScoreType score_chosen = lpi_items_[cand_id].psb; in choose()846 lpi_item.psb = score_chosen; in choose()1180 printf("[%03d]%d ", a, lpi_items_[a].psb); in prepare_candidates()1455 lpi_items_[lpi_total_ + t].psb); in extend_dmi()1527 lpi_items_[0].psb = 0; // 0 is bigger than normal lemma score. in extend_dmi_c()1553 float score = mtrx_nd->score + lpi_items[pos].psb; in extend_mtrx_nd()1719 if (lpsis[pos].lpi.psb < lpsis[pos - 1].lpi.psb) { in get_lpis()1755 if (lma_buf[pos].psb < lma_buf[pos - 1].psb) { in get_lpis()
323 lpi_items[lpi_num].psb = in fill_lpi_buffer()341 lpi_items[lpi_num].psb = in fill_lpi_buffer()817 lma_buf[ch_pos].psb = in get_lpis()831 lma_buf[ch_pos].psb = in get_lpis()930 npre_items[item_num].psb = ngram.get_uni_psb(top_lma_id); in predict_top_lmas()
234 float NGram::convert_psb_to_score(double psb) { in convert_psb_to_score() argument236 log(psb) * static_cast<double>(kLogValueAmplifier)); in convert_psb_to_score()
257 npre_items[item_num].psb = in predict()
591 lpi_items[lpi_current].psb = translate_score(scores_[middle]); in _get_lpis()674 npre_items[new_added].psb = get_lemma_score(words, splids, nchar); in _get_lpis()
35 uint16 psb; // The score, the lower psb, the higher possibility. member49 float psb; member
86 static float convert_psb_to_score(double psb);