Home
last modified time | relevance | path

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

/external/srec/srec/Semproc/src/
DSemanticProcessorImpl.c91 static const LCHAR* lookUpWord(SR_SemanticGraphImpl* semgraph, wordID wdid);
96 static const LCHAR* lookUpScript(SR_SemanticGraphImpl* semgraph, const LCHAR* script_label);
101 static ESR_ReturnCode accumulate_scripts(SR_SemanticGraphImpl* semgraph, script_list* scripts, sem_…
250 static ESR_ReturnCode checkpath_forwardByWordID(SR_SemanticGraphImpl* semgraph, in checkpath_forwardByWordID() argument
264 …for (atok = atoken_start; atok; atok = ARC_TOKEN_PTR(semgraph->arc_token_list, atok->next_token_in… in checkpath_forwardByWordID()
268 …atok->ilabel, atok->ilabel!=MAXwordID?semgraph->ilabels->words[atok->ilabel]:"max", atok->olabel… in checkpath_forwardByWordID()
273 if (atok->ilabel < semgraph->ilabels->num_slots && atok->ilabel != WORD_EPSILON_LABEL && in checkpath_forwardByWordID()
274 wordmap_whether_in_rule(semgraph->ilabels, *currentWord, atok->ilabel)) in checkpath_forwardByWordID()
277 …atok_use = arc_tokens_find_ilabel(semgraph->arc_token_list, semgraph->arcs_for_slot[atok->ilabel],… in checkpath_forwardByWordID()
282 …for (a = semgraph->arcs_for_slot[atok->ilabel]; 0 && a; a = ARC_TOKEN_PTR(semgraph->arc_token_list… in checkpath_forwardByWordID()
[all …]
DSemanticGraphImpl.c288 SR_SemanticGraphImpl* semgraph = (SR_SemanticGraphImpl*) self; in SR_SemanticGraph_LoadFromTextFiles() local
296 semgraph->ilabels = ilabels; in SR_SemanticGraph_LoadFromTextFiles()
340 wordmap_create(&semgraph->scripts, i, num_scripts, (int)AVG_SCRIPTS_PER_WORD*num_words_to_add); in SR_SemanticGraph_LoadFromTextFiles()
368 if (wordmap_add_word(semgraph->scripts, oword) != lineNo) in SR_SemanticGraph_LoadFromTextFiles()
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()
417 …wordmap_create(&semgraph->scopes_olabels, num_scope_chars, num_scope_words,0); // max_num_arc_toke… in SR_SemanticGraph_LoadFromTextFiles()
438 olabel = (wordID)(olabel + semgraph->script_olabel_offset); /* the offset */ in SR_SemanticGraph_LoadFromTextFiles()
443 olabel = wordmap_find_index(semgraph->scopes_olabels, oword); in SR_SemanticGraph_LoadFromTextFiles()
446 olabel = wordmap_add_word(semgraph->scopes_olabels, oword); in SR_SemanticGraph_LoadFromTextFiles()
[all …]
/external/srec/srec/Grammar/src/
DSR_GrammarImpl.c77 rc = SR_SemanticGraphCreate(&impl->semgraph); in SR_Grammar_Create()
255 CHKLOG(rc, impl->semgraph->addWordToSlot(impl->semgraph, slot, word, tag, 1)); in SR_Grammar_AddWordToSlot()
260 CHKLOG(rc, impl->semgraph->addWordToSlot(impl->semgraph, slot, word, tag, 0)); in SR_Grammar_AddWordToSlot()
307 rc = impl->semgraph->reset(impl->semgraph); in SR_Grammar_ResetAllSlots()
437 rc = impl->semgraph->load(impl->semgraph, impl->syntax->synx->olabels, filename, addWords); in SR_GrammarLoad()
441 impl->semgraph = NULL; in SR_GrammarLoad()
476 if (SR_SemanticGraph_Save(impl->semgraph, filename, version_number) != ESR_SUCCESS) in SR_Grammar_Save()
571 if (impl->semgraph != NULL) in SR_Grammar_Destroy()
573 CHKLOG(rc, impl->semgraph->unload(impl->semgraph)); in SR_Grammar_Destroy()
574 CHKLOG(rc, impl->semgraph->destroy(impl->semgraph)); in SR_Grammar_Destroy()
[all …]
/external/srec/srec/Semproc/include/
DSR_SemanticProcessorImpl.h66 …anticProcessor_CheckParse(SR_SemanticProcessor* self, SR_SemanticGraph* semgraph, const LCHAR* tra…
70 …cessor_CheckParseByWordID(SR_SemanticProcessor* self, SR_SemanticGraph* semgraph, wordID* wordIDs,…
DSR_SemanticProcessor.h47 …ESR_ReturnCode(*checkParse)(struct SR_SemanticProcessor_t* self, SR_SemanticGraph* semgraph, const…
55 …ckParseByWordID)(struct SR_SemanticProcessor_t* self, SR_SemanticGraph* semgraph, wordID* wordIDs,…
/external/srec/srec/Grammar/include/
DSR_GrammarImpl.h85 SR_SemanticGraph* semgraph; member
/external/srec/tools/parseStringTest/
DparseStringTest.c177 rc = pgrammar->semproc->checkParseByWordID(pgrammar->semproc, pgrammar->semgraph, in Parse()
/external/srec/srec/Recognizer/src/
DRecognizerImpl.c2232 rc = pgrammar->semproc->checkParseByWordID(pgrammar->semproc, pgrammar->semgraph, in SR_RecognizerCreateResultImpl()