Home
last modified time | relevance | path

Searched refs:arc_token_list (Results 1 – 8 of 8) sorted by relevance

/external/srec/srec/Semproc/src/
DSemanticGraphImpl.c152 if (impl->arc_token_list != NULL) in SR_SemanticGraph_LoadFromImage()
154 FREE(impl->arc_token_list); in SR_SemanticGraph_LoadFromImage()
155 impl->arc_token_list = NULL; in SR_SemanticGraph_LoadFromImage()
246 static arc_token_lnk get_first_arc_leaving_node1(arc_token* arc_token_list, in get_first_arc_leaving_node1() argument
253 if ((nodeID)(int)arc_token_list[i].next_token_index == node) in get_first_arc_leaving_node1()
254 return ARC_TOKEN_LNK(arc_token_list, i); in get_first_arc_leaving_node1()
284 arc_token* arc_token_list; in SR_SemanticGraph_LoadFromTextFiles() local
414 semgraph->arc_token_list = NEW_ARRAY(arc_token,max_num_arc_tokens, L("semgraph.wordgraph")); in SR_SemanticGraph_LoadFromTextFiles()
415 arc_token_list = semgraph->arc_token_list; in SR_SemanticGraph_LoadFromTextFiles()
475 atoken = &arc_token_list[i]; in SR_SemanticGraph_LoadFromTextFiles()
[all …]
DSemanticProcessorImpl.c264 …for (atok = atoken_start; atok; atok = ARC_TOKEN_PTR(semgraph->arc_token_list, atok->next_token_in… in checkpath_forwardByWordID()
277 …atok_use = arc_tokens_find_ilabel(semgraph->arc_token_list, semgraph->arcs_for_slot[atok->ilabel],… in checkpath_forwardByWordID()
282 …ph->arcs_for_slot[atok->ilabel]; 0 && a; a = ARC_TOKEN_PTR(semgraph->arc_token_list, a->next_token… in checkpath_forwardByWordID()
302 arc_token* atokfna = ARC_TOKEN_PTR(semgraph->arc_token_list, atok->first_next_arc); in checkpath_forwardByWordID()
371 …for (atok = atoken_start; atok; atok = ARC_TOKEN_PTR(semgraph->arc_token_list, atok->next_token_in… in checkpath_forward()
386 …atok_use = arc_tokens_find_ilabel(semgraph->arc_token_list, semgraph->arcs_for_slot[atok->ilabel],… in checkpath_forward()
391 …ph->arcs_for_slot[atok->ilabel]; 0 && a; a = ARC_TOKEN_PTR(semgraph->arc_token_list, a->next_token… in checkpath_forward()
414 arc_token* atokfna = ARC_TOKEN_PTR(semgraph->arc_token_list, atok->first_next_arc); in checkpath_forward()
504 rc = checkpath_forwardByWordID(semgraph, heap, &semgraph->arc_token_list[0], path_root, in SR_SemanticProcessor_CheckParseByWordID()
825 debug_base_arc_token = &semgraph->arc_token_list[0]; in SR_SemanticProcessor_CheckParse()
[all …]
/external/srec/srec/crec/
Dastar.c72 arc_token* arc_token_list = context->arc_token_list; in get_arc_for_word() local
84 root_arc.first_next_arc = ARC_TOKEN_LNK(arc_token_list, 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()
99 for (tmp = ARC_TOKEN_PTR(arc_token_list, atoken->first_next_arc); tmp; in get_arc_for_word()
100 tmp = ARC_TOKEN_PTR(arc_token_list, tmp->next_token_index)) in get_arc_for_word()
115 tmp = ARC_TOKEN_PTR(arc_token_list, atoken->first_next_arc); in get_arc_for_word()
124 for (tmp = ARC_TOKEN_PTR(arc_token_list, atoken->first_next_arc); tmp; in get_arc_for_word()
125 tmp = ARC_TOKEN_PTR(arc_token_list, tmp->next_token_index)) in get_arc_for_word()
139 tmp = ARC_TOKEN_PTR(arc_token_list, atoken->first_next_arc); in get_arc_for_word()
[all …]
Dtext_parser.c95 for (tmp = ARC_TOKEN_PTR(context->arc_token_list, next_atok->first_next_arc); tmp != NULL; in check_word_path()
96 tmp = ARC_TOKEN_PTR(context->arc_token_list, tmp->next_token_index)) in check_word_path()
112 arc_token* atok = &context->arc_token_list[0]; in FST_CheckPath_Simple()
199 if (!context->arc_token_list) in FST_CheckPath()
Dsrec_context.c1752 arc_token_lnk get_first_arc_leaving_node(arc_token* arc_token_list, in get_first_arc_leaving_node() argument
1759 if ((nodeID)(int)arc_token_list[i].next_token_index == node) in get_first_arc_leaving_node()
1760 return ARC_TOKEN_LNK(arc_token_list, i); in get_first_arc_leaving_node()
1776 arc_token *arc_token_list, *tmp; in FST_LoadReverseWordGraph() local
1786 …context->arc_token_list = (arc_token*)CALLOC_CLR(num_alloc_arc_tokens, sizeof(arc_token), "srec.gr… in FST_LoadReverseWordGraph()
1787 arc_token_list = context->arc_token_list; in FST_LoadReverseWordGraph()
1810 atoken = &arc_token_list[i]; in FST_LoadReverseWordGraph()
1826 atoken = &arc_token_list[i]; in FST_LoadReverseWordGraph()
1831 …atoken->first_next_arc = get_first_arc_leaving_node(arc_token_list, num_arcs, (nodeID)atoken->firs… in FST_LoadReverseWordGraph()
1835 last_atoken = &arc_token_list[0]; in FST_LoadReverseWordGraph()
[all …]
Dword_lattice.c696 keep_arc_token_list = rec->context->arc_token_list;
697 rec->context->arc_token_list = 0;
753 rec->context->arc_token_list = keep_arc_token_list;
/external/srec/srec/Semproc/include/
DSR_SemanticGraphImpl.h86 arc_token* arc_token_list; member
116 arc_token* arc_tokens_find_ilabel(arc_token* base, arc_token* arc_token_list, wordID wdid);
/external/srec/srec/include/
Dsrec_context.h141 arc_token* arc_token_list; member
236 arc_token_lnk get_first_arc_leaving_node(arc_token* arc_token_list, arcID num_arcs, nodeID node);