Home | History | Annotate | Download | only in share

Lines Matching refs:dmi

468     printf("--DMI Pool Used: %d\n", dmi_pool_used_);
691 DictMatchInfo *dmi = dmi_pool_ + dmi_pos;
694 printf("-----------------%d\'th DMI node begin----------->\n", dmi_pos);
696 if (dmi->dict_level > 1) {
697 debug_print_dmi(dmi->dmi_fr, nest_level + 1);
699 printf("---%d\n", dmi->dict_level);
700 printf(" MileStone: %x, %x\n", dmi->dict_handles[0], dmi->dict_handles[1]);
702 get_spelling_str(dmi->spl_id), dmi->spl_id);
703 printf(" Total Pinyin Len: %d\n", dmi->splstr_len);
705 printf("<----------------%d\'th DMI node end--------------\n\n", dmi_pos);
840 // 3.3 For the last character of the fixed part, the previous DMI
900 DictMatchInfo *dmi = dmi_pool_ + end_node->dmi_fr;
901 fixed_hzs_ -= dmi->dict_level;
949 void MatrixSearch::fill_dmi(DictMatchInfo *dmi, MileStoneHandle *handles,
954 dmi->dict_handles[0] = handles[0];
955 dmi->dict_handles[1] = handles[1];
956 dmi->dmi_fr = dmi_fr;
957 dmi->spl_id = spl_id;
958 dmi->dict_level = dict_level;
959 dmi->splid_end_split = splid_end_split ? 1 : 0;
960 dmi->splstr_len = splstr_len;
961 dmi->all_full_id = all_full_id;
962 dmi->c_phrase = 0;
1019 // 3. Extend the DMI nodes of that old row
1024 DictMatchInfo *dmi = dmi_pool_ + dmi_pos;
1026 dmi = NULL; // The last one, NULL means extending from the root.
1028 // If the dmi is covered by the fixed arrange, ignore it.
1030 pys_decoded_len_ - ext_len - dmi->splstr_len <
1034 // If it is not in mode for composing phrase, and the source DMI node
1036 if (dmi->c_phrase != 0 && !dmi_c_phrase_) {
1045 if (NULL == dmi && 0 == matrix_[oldrow].dmi_has_full_id) {
1050 if (NULL != dmi && spl_trie_->is_half_id(dmi->spl_id)) {
1056 if (NULL != dmi) {
1057 uint16 prev_ids_num = dmi->dict_level;
1063 DictMatchInfo *d = dmi;
1071 dep_->splids_extended = dmi->dict_level;
1087 new_dmi_num = extend_dmi(dep_, dmi);
1103 if (NULL == dmi) {
1106 assert(oldrow >= dmi->splstr_len);
1107 fr_row = oldrow - dmi->splstr_len;
1416 PoolPosType mtrx_dmi_fr = (PoolPosType)-1; // From which dmi node
1589 DictMatchInfo *dmi = dmi_pool_ + matrix_[step_to].dmi_pos + dmi_pos;
1591 if (dmi->dict_level != spl_id_num)
1596 if (spl_ids[spl_id_num - spl_pos - 1] != dmi->spl_id) {
1601 dmi = dmi_pool_ + dmi->dmi_fr;
1628 printf("==============Sentence DMI (reverse order) begin===========>>\n");
1645 printf("<<==============Sentence DMI (reverse order) end=============\n");