Lines Matching defs:kb
342 picoknow_KnowledgeBase * kb)
344 (*kb) = picoknow_newKnowledgeBase(this->common->mm);
345 if (NULL == (*kb)) {
348 (*kb)->base = data;
349 (*kb)->size = size;
350 (*kb)->id = kbid;
355 return picokpr_specializePreprocKnowledgeBase(*kb, this->common);
358 return picoktab_specializeGraphsKnowledgeBase(*kb, this->common);
361 return picoktab_specializePhonesKnowledgeBase(*kb, this->common);
364 return picoktab_specializePosKnowledgeBase(*kb, this->common);
367 return picoktab_specializeIdsKnowledgeBase(*kb, this->common);
372 return picoklex_specializeLexKnowledgeBase(*kb, this->common);
375 return picokdt_specializeDtKnowledgeBase(*kb, this->common,
379 return picokdt_specializeDtKnowledgeBase(*kb, this->common,
383 return picokdt_specializeDtKnowledgeBase(*kb, this->common,
387 return picokdt_specializeDtKnowledgeBase(*kb, this->common,
391 return picokdt_specializeDtKnowledgeBase(*kb, this->common,
413 return picokfst_specializeFSTKnowledgeBase(*kb, this->common);
427 return picokdt_specializeDtKnowledgeBase(*kb, this->common,
431 return picokpdf_specializePdfKnowledgeBase(*kb, this->common,
436 return picokpdf_specializePdfKnowledgeBase(*kb, this->common,
440 return picokpdf_specializePdfKnowledgeBase(*kb, this->common,
444 return picokpdf_specializePdfKnowledgeBase(*kb, this->common,
452 return picokdbg_specializeDbgKnowledgeBase(*kb, this->common);
465 picoknow_KnowledgeBase * kb)
467 (*kb) = NULL;
481 picoknow_KnowledgeBase kb;
489 /* read in all kb names */
501 PICODBG_DEBUG(("got kb id %i, curpos now %i",kbid, curpos));
503 PICODBG_DEBUG(("got kb offset %i, curpos now %i",offset, curpos));
505 PICODBG_DEBUG(("got kb size %i, curpos now %i",size, curpos));
508 /* currently we consider a kb mentioned in resource but with offset 0 (no knowledge) as
509 * different form a kb not mentioned at all. We might reconsider that later. */
510 PICODBG_DEBUG((" kb (id %i) is mentioned but empty (base:%i, size:%i)",kb->id, kb->base, kb->size));
511 status = picorsrc_createKnowledgeBase(this, NULL, size, (picoknow_kb_id_t)kbid, &kb);
513 status = picorsrc_createKnowledgeBase(this, data+offset, size, (picoknow_kb_id_t)kbid, &kb);
515 PICODBG_DEBUG(("found kb (id %i) starting at %i with size %i",kb->id, kb->base, kb->size));
517 kb->next = *kbList;
518 *kbList = kb;
523 kb = *kbList;
524 while (NULL != kb) {
525 picorsrc_releaseKnowledgeBase(this,&kb);
651 /* create kb list from resource */
677 picoknow_KnowledgeBase kbprev, kb;
678 kb = *kbList;
679 while (NULL != kb) {
680 kbprev = kb;
681 kb = kb->next;
934 picoknow_KnowledgeBase kb;
980 /* copy resource kb pointers into kb array of voice */
987 kb = rsrc->kbList;
988 while (NULL != kb) {
989 if (NULL != (*voice)->kbArray[kb->id]) {
990 picoos_emRaiseWarning(this->common->em,PICO_WARN_KB_OVERWRITE,NULL, (picoos_char *)"%i", kb->id);
991 PICODBG_WARN(("overwriting knowledge base of id %i", kb->id));
994 PICODBG_DEBUG(("setting knowledge base of id %i", kb->id));
996 (*voice)->kbArray[kb->id] = kb;
997 kb = kb->next;