SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Macros | Functions | Variables
tree_util.c File Reference

Utilities for handling phonetic decision trees. More...

Data Structures

struct  SprTreeQuestion
 
struct  SprTreeQuestions
 
struct  SprTreeTreeNode
 

Macros

#define SPR_TREE_QNR_NODE_NR
 
#define SPR_TREE_QNR_NDEF
 Automatic 'question' number, marking the terminator element. More...
 

Functions

void spr_tree_questions_print (SprStream *fptr, SprTreeQuestions *questions, SprCwrPhoneDesc *phones)
 
SprTreeQuestionsspr_tree_questions_free (SprTreeQuestions *questions)
 
SprTreeQuestionsspr_tree_questions_alloc (int nquestions)
 
void spr_tree_questions_purge (SprTreeQuestions *questions, const int *ci_xlat, SprCwrPhoneDesc *phones)
 
SprTreeQuestionsspr_tree_questions_read (const char *q_file, SprCwrPhoneDesc *phones)
 
int spr_tree_state_counts_read (const char *count_file, SprHmmStates *states)
 
char * spr_tree_context_nr2string (int context_nr)
 
int spr_tree_context_string2nr (char *context_str)
 
SprTreeTreeNodespr_tree_print (SprStream *fptr, SprTreeTreeNode *treenode, SprTreeQuestions *questions, int level)
 
SprTreeTreeNodespr_tree_free (SprTreeTreeNode *treenode)
 free_tree() frees a tree structure and returns NULL. More...
 
int spr_tree_is_yes (int phon_nr, SprTreeQuestion *question)
 
int spr_tree_node_is_yes (int node_nr, int first_node, int last_node)
 
void *** spr_tree_cube_alloc (int mats, int rows, int cols, int el_size)
 
void spr_tree_cube_free (void *cube, int mats, int rows)
 free_cube() frees a cube with mats matrices and rows rows. More...
 
SprTreeTreeNodespr_tree_read (SprStream *tfptr, SprTreeQuestions *questions, int *statenr, char **tstr, int *tstrlen, int itree, SprCmdBuf *cmdbuf)
 
SprTreeTreeNodespr_tree_read_multi (char *tree_ifname, SprCwrPhoneDesc *phones, SprTreeQuestions *questions, int *statenr)
 
void spr_tree_prune (SprTreeTreeNode *treenode, float max_overlap, int *statenr)
 

Variables

const SprTreeTreeNode spr_tree_empty_treenode
 

Detailed Description

Utilities for handling phonetic decision trees.

Utilities for handling phonetic decision trees

Author
Jacques Duchateau
Date
December 1996
Revision History:
JD, March 1999: added to package HMM version 70