Julius 4.2
libjulius/include/julius/graph.h
説明を見る。
00001 
00023 /*
00024  * Copyright (c) 1991-2011 Kawahara Lab., Kyoto University
00025  * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
00026  * Copyright (c) 2005-2011 Julius project team, Nagoya Institute of Technology
00027  * All rights reserved
00028  */
00029 
00030 #ifndef __J_GRAPH_H__
00031 #define __J_GRAPH_H__
00032 
00033 #define FANOUTSTEP 7            ///< Memory allocation step for connection words in WordGraph
00034 
00043 typedef struct __word_graph__ {
00044   WORD_ID wid;                  
00045   int lefttime;                 
00046   int righttime;                
00047   LOGPROB fscore_head;          
00048   LOGPROB fscore_tail;          
00049   LOGPROB gscore_head;          
00050   LOGPROB gscore_tail;          
00051   LOGPROB lscore_tmp;           
00052   LOGPROB forward_score;        
00053   LOGPROB backward_score;       
00054 #ifdef CM_SEARCH
00055   LOGPROB cmscore;              
00056 #endif
00057   LOGPROB amavg;                
00058   HMM_Logical *headphone;       
00059   HMM_Logical *tailphone;       
00060   struct __word_graph__ **leftword; 
00061   LOGPROB *left_lscore;         
00062   int leftwordnum;              
00063   int leftwordmaxnum;           
00064   struct __word_graph__ **rightword; 
00065   LOGPROB *right_lscore;        
00066   int rightwordnum;             
00067   int rightwordmaxnum;          
00068   struct __word_graph__ *next;  
00069   boolean mark;                 
00070   int id;                       
00071   boolean saved;                
00072 #ifdef GRAPHOUT_DYNAMIC
00073   boolean purged;               
00074 #endif
00075   LOGPROB graph_cm;             
00076 } WordGraph;
00077 
00082 typedef struct __confnet_cluster__ {
00083   WordGraph **wg;               
00084   int wgnum;                    
00085   int wgnum_alloc;              
00086   WORD_ID *words;               
00087   LOGPROB *pp;                  
00088   int wordsnum;                 
00089   struct __confnet_cluster__ *next; 
00090 } CN_CLUSTER;
00091 
00096 #define CN_CLUSTER_WG_STEP 10
00097 
00098 #endif /* __J_GRAPH_H__ */