Julius 4.2
libjulius/include/julius/multi-gram.h
説明を見る。
00001 
00018 /*
00019  * Copyright (c) 1991-2011 Kawahara Lab., Kyoto University
00020  * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
00021  * Copyright (c) 2005-2011 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  ///< Grammar hook value of no operation
00056 #define MULTIGRAM_DELETE     1  ///< Grammar hook bit specifying that this grammar is to be deleted
00057 #define MULTIGRAM_ACTIVATE   2  ///< Grammar hook bit specifying that this grammar is to be activated
00058 #define MULTIGRAM_DEACTIVATE 4  ///< Grammar hook bit specifying that this grammar is to be deactivated
00059 #define MULTIGRAM_MODIFIED   8 /// < Grammar hook bit indicating modification  and needs rebuilding the whole lexicon
00060 
00061 
00062 #endif /* __J_MULTI_GRAM_H__ */