Home
last modified time | relevance | path

Searched refs:atoken (Results 1 – 4 of 4) sorted by relevance

/external/srec/srec/crec/
Dsrec_context.c914 FSMarc *atoken = NULL; in FST_LoadGraph() local
1047 atoken = ARC_XtoP(atok); in FST_LoadGraph()
1053 atoken->ilabel = hmm_number(ilabel_str, fst->hmm_ilabel_offset); in FST_LoadGraph()
1056 atoken->ilabel = fst->hmm_ilabel_offset + SLOTLOOP_OFFSET; in FST_LoadGraph()
1060 atoken->ilabel = wordmap_find_index(fst->ilabels, ilabel_str); in FST_LoadGraph()
1062 atoken->olabel = wordmap_find_index(fst->olabels, olabel_str); in FST_LoadGraph()
1069 atoken->cost = cost; in FST_LoadGraph()
1071atoken->ilabel_str = (atoken->ilabel < fst->ilabels->num_words ? fst->ilabels->words[atoken->ilabe… in FST_LoadGraph()
1072atoken->olabel_str = (atoken->olabel < fst->olabels->num_words ? fst->olabels->words[atoken->olabe… in FST_LoadGraph()
1078 atoken->fr_node = NODE_ItoX(from_node); in FST_LoadGraph()
[all …]
Dastar.c67 arc_token* get_arc_for_word(arc_token* atoken, wordID word, in get_arc_for_word() argument
76 if (atoken == ARC_TOKEN_ONE) in get_arc_for_word()
81 else if (atoken == 0) in get_arc_for_word()
92 atoken = &arc_token_list[0]; in get_arc_for_word()
93 for (; atoken; atoken = ARC_TOKEN_PTR(arc_token_list, atoken->next_token_index)) in get_arc_for_word()
95 if (atoken->ilabel == word) in get_arc_for_word()
96 return atoken; in get_arc_for_word()
97 else if (atoken->ilabel == WORD_EPSILON_LABEL) in get_arc_for_word()
99 for (tmp = ARC_TOKEN_PTR(arc_token_list, atoken->first_next_arc); tmp; in get_arc_for_word()
104 else if (atoken->ilabel < wmap->num_slots) in get_arc_for_word()
[all …]
/external/srec/srec/Semproc/src/
DSemanticGraphImpl.c280 arc_token *atoken; in SR_SemanticGraph_LoadFromTextFiles() local
475 atoken = &arc_token_list[i]; in SR_SemanticGraph_LoadFromTextFiles()
478 atoken->ilabel = ilabel; in SR_SemanticGraph_LoadFromTextFiles()
479 atoken->olabel = olabel; in SR_SemanticGraph_LoadFromTextFiles()
484 atoken->first_next_arc = (arc_token_lnk)into_node; in SR_SemanticGraph_LoadFromTextFiles()
485 atoken->next_token_index = (arc_token_lnk)from_node; in SR_SemanticGraph_LoadFromTextFiles()
501 atoken = &arc_token_list[i]; in SR_SemanticGraph_LoadFromTextFiles()
502 into_node = (nodeID)(int)atoken->first_next_arc; /* get the integer */ in SR_SemanticGraph_LoadFromTextFiles()
503 atoken->first_next_arc = /* converts the integer id to a arc_token pointer */ in SR_SemanticGraph_LoadFromTextFiles()
504 get_first_arc_leaving_node1(arc_token_list, num_arcs, (nodeID)(int)atoken->first_next_arc); in SR_SemanticGraph_LoadFromTextFiles()
[all …]
/external/srec/srec/include/
Dastar.h125 arc_token* get_arc_for_word(arc_token* atoken, wordID word, void* context_void,
128 arc_token* get_arc_for_word_without_slot_annotation(arc_token* atoken, const char* word,