libjulius/include/julius/multi-gram.h

Go to the documentation of this file.
00001 
00018 /*
00019  * Copyright (c) 1991-2007 Kawahara Lab., Kyoto University
00020  * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
00021  * Copyright (c) 2005-2007 Julius project team, Nagoya Institute of Technology
00022  * All rights reserved
00023  */
00024 
00025 #ifndef __J_MULTI_GRAM_H__
00026 #define __J_MULTI_GRAM_H__
00027 
00029 #define MAXGRAMNAMELEN 512
00030 
00032 typedef struct __multi_gram__ {
00033   char name[MAXGRAMNAMELEN];    
00034   unsigned short id;            
00035   DFA_INFO *dfa;                
00036   WORD_INFO *winfo;             
00037   int hook;                     
00038   boolean newbie;               
00039   boolean active;               
00040 
00041   int state_begin;              
00042   int cate_begin;               
00043   int word_begin;               
00044   struct __multi_gram__ *next;  
00045 } MULTIGRAM;
00046 
00048 typedef struct __gram_list__ {
00049   char *dfafile;                
00050   char *dictfile;               
00051   struct __gram_list__ *next;   
00052 } GRAMLIST;
00053 
00054 /* for command hook */
00055 #define MULTIGRAM_DEFAULT    0  
00056 #define MULTIGRAM_DELETE     1  
00057 #define MULTIGRAM_ACTIVATE   2  
00058 #define MULTIGRAM_DEACTIVATE 4  
00059 #define MULTIGRAM_MODIFIED   8 
00060 
00061 
00062 #endif /* __J_MULTI_GRAM_H__ */

Generated on Tue Dec 18 15:59:50 2007 for Julius by  doxygen 1.5.4