Home
last modified time | relevance | path

Searched refs:parp (Results 1 – 6 of 6) sorted by relevance

/external/srec/srec/crec/
Dastar_pphash.c76 unsigned int hashfunc(partial_path* parp) in hashfunc() argument
79 if (parp->first_prev_arc != PARP_TERMINAL) in hashfunc()
80 hashval = parp->token_index; in hashfunc()
83 hashval = (hashval << 10) + parp->word; in hashfunc()
84 while ((parp = parp->next) != NULL) in hashfunc()
86 if (parp->word != MAXwordID) in hashfunc()
87 hashval = hashval * 64 + parp->word + hashval % 65536; in hashfunc()
94 int hash_get(FixedSizeHash* hash, partial_path* parp, void** hval) in hash_get() argument
96 unsigned int hkey_index = hashfunc(parp); in hash_get()
105 if (compare_parp(p_return, parp, hash->rec) == 0) in hash_get()
[all …]
Dastar.c290 partial_path* parp, in extend_path() argument
307 if (wtoken->end_time > word_token_array[parp->token_index].end_time) in extend_path()
319 best_extend_token = word_token_array[ parp->token_index].backtrace; in extend_path()
326 if (netcost + parp->costsofar > max_cost) in extend_path()
330 netcost, wtoken->cost, best_cost_for_node, parp->costsofar, max_cost); in extend_path()
337 for (alt_extension = parp->first_prev_arc; alt_extension; in extend_path()
391 extended_parp->costsofar = parp->costsofar + netcost; in extend_path()
409 parp->refcount++; in extend_path()
412 extended_parp->next = parp; in extend_path()
413 append_arc_arriving(parp, extended_parp); in extend_path()
[all …]
Dsrec_results.c185 partial_path* parp = stack->complete_paths[i]; in srec_nbest_fix_homonym_confidence_values() local
186 for (; parp; parp = parp->next) { in srec_nbest_fix_homonym_confidence_values()
187 word_token* wtoken = &rec->word_token_array[ parp->token_index]; in srec_nbest_fix_homonym_confidence_values()
235 partial_path* parp; in srec_nbest_get_resultWordIDs() local
247 parp = stack->complete_paths[index]; in srec_nbest_get_resultWordIDs()
251 if (parp && parp->word == rec->context->beg_silence_word) in srec_nbest_get_resultWordIDs()
252 parp = parp->next; in srec_nbest_get_resultWordIDs()
253 while (parp) in srec_nbest_get_resultWordIDs()
255 id = parp->word; in srec_nbest_get_resultWordIDs()
268 parp = parp->next; in srec_nbest_get_resultWordIDs()
[all …]
Dastar_pphash.h48 int hash_del(FixedSizeHash* hash, partial_path* parp);
49 unsigned int hashfunc(partial_path* parp);
51 int hash_get(FixedSizeHash* hash, partial_path* parp, void** hval);
52 int hash_set(FixedSizeHash* hash, partial_path* parp);
Dsrec_stats.c144 partial_path *parp; in srec_stats_update_astar() local
153 for (parp = stack->free_parp_list; parp; parp = parp->next) in srec_stats_update_astar()
/external/srec/srec/include/
Dastar.h122 void free_partial_path(AstarStack* stack, partial_path* parp);
123 void print_path(partial_path* parp, psrec rec, char* msg);