#include <sent/stddefs.h>
#include <sent/vocabulary.h>
#include <sent/htk_hmm.h>
dfa.hのインクルード依存関係図

このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。

マクロ定義 | |
| #define | DFA_STATESTEP 1000 | 
| Allocation step of DFA state.  | |
| #define | INITIAL_S 0x10000000 | 
| Status flag mask specifying an initial state.  | |
| #define | ACCEPT_S 0x00000001 | 
| Status flag mask specifying an accept state.  | |
型定義 | |
| typedef _dfa_arc | DFA_ARC | 
| Transition arc of DFA.  | |
関数 | |
| DFA_INFO * | dfa_info_new () | 
| void | dfa_info_free (DFA_INFO *dfa) | 
| void | dfa_state_init (DFA_INFO *dinfo) | 
| void | dfa_state_expand (DFA_INFO *dinfo, int needed) | 
| boolean | rddfa (FILE *fp, DFA_INFO *dinfo) | 
| boolean | rddfa_fd (int fd, DFA_INFO *dinfo) | 
| boolean | rddfa_sd (int sd, DFA_INFO *dinfo) | 
| boolean | rddfa_line (char *line, DFA_INFO *dinfo, int *state_max, int *arc_num, int *terminal_max) | 
| void | dfa_append (DFA_INFO *dst, DFA_INFO *src, int soffset, int coffset) | 
| void | init_dfa (DFA_INFO *dinfo, char *filename) | 
| WORD_ID | dfa_symbol_lookup (DFA_INFO *dinfo, char *terminalname) | 
| void | extract_cpair (DFA_INFO *dinfo) | 
| void | cpair_append (DFA_INFO *dst, DFA_INFO *src, int coffset) | 
| void | print_dfa_info (DFA_INFO *dinfo) | 
| void | print_dfa_cp (DFA_INFO *dinfo) | 
| boolean | dfa_cp (DFA_INFO *dfa, int i, int j) | 
| boolean | dfa_cp_begin (DFA_INFO *dfa, int i) | 
| boolean | dfa_cp_end (DFA_INFO *dfa, int i) | 
| void | set_dfa_cp (DFA_INFO *dfa, int i, int j, boolean value) | 
| void | set_dfa_cp_begin (DFA_INFO *dfa, int i, boolean value) | 
| void | set_dfa_cp_end (DFA_INFO *dfa, int i, boolean value) | 
| void | init_dfa_cp (DFA_INFO *dfa) | 
| void | malloc_dfa_cp (DFA_INFO *dfa, int term_num) | 
| void | realloc_dfa_cp (DFA_INFO *dfa, int old_term_num, int new_term_num) | 
| void | free_dfa_cp (DFA_INFO *dfa) | 
| void | make_dfa_voca_ref (DFA_INFO *dinfo, WORD_INFO *winfo) | 
| void | make_terminfo (TERM_INFO *tinfo, DFA_INFO *dinfo, WORD_INFO *winfo) | 
| void | terminfo_append (TERM_INFO *dst, TERM_INFO *src, int coffset, int woffset) | 
| void | dfa_find_pause_word (DFA_INFO *dfa, WORD_INFO *winfo, HTK_HMM_INFO *hmminfo) | 
| void | dfa_pause_word_append (DFA_INFO *dst, DFA_INFO *src, int coffset) | 
DFAは, 単語のカテゴリ番号を入力とする決定性オートマトンで,構文制約を 表現します.カテゴリごとの単語リストも保持します.
また,第1パスの認識のために,DFAカテゴリ間の接続関係のみを抜き出した 単語対情報も保持します.これは文法を読みだし後に内部でDFAから抽出されます.
dfa.h で定義されています。
      
  | 
  
| 
 Allocate a new grammar information data structure and initialize it. 
 
 dfa_malloc.c の 33 行で定義されています。  | 
  
      
  | 
  
| 
 Free all informations in the DFA_INFO. 
 
 dfa_malloc.c の 54 行で定義されています。  | 
  
      
  | 
  
| 
 Initialize and allocate DFA state information list in the grammar. 
 
 参照元 multigram_exec(), rddfa(), rddfa_fd(), と rddfa_sd().  | 
  
      
  | 
  ||||||||||||
| 
 Expand the state information list to the required length. 
 
 参照元 dfa_append(), と rddfa_line().  | 
  
      
  | 
  ||||||||||||
| 
 Top loop function to read DFA grammar via file pointer 
 
 
 参照元 init_dfa().  | 
  
      
  | 
  ||||||||||||
| 
 Top loop function to read DFA grammar via file descriptor 
 
 
  | 
  
      
  | 
  ||||||||||||
| 
 Top loop function to read DFA grammar via socket descriptor 
 
 
  | 
  
      
  | 
  ||||||||||||||||||||||||
| 
 Parse the input line and set grammar information, one by line. 
 
 
 参照元 rddfa(), rddfa_fd(), と rddfa_sd().  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Append the DFA state information to other 
 
  | 
  
      
  | 
  ||||||||||||
| 
 Read in a grammar file and set to DFA grammar structure 
 
 init_dfa.c の 45 行で定義されています。  | 
  
      
  | 
  ||||||||||||
| 
 Return category id corresponding to the given terminal name. Actually they are mere strings of ID itself. 
 
 
 dfa_lookup.c の 44 行で定義されています。 参照元 make_dfa_voca_ref().  | 
  
      
  | 
  
| 
 Extract category-pair constraint from DFA grammar and newly set the category pair matrix of the give DFA. 
 
 参照元 multigram_exec().  | 
  
      
  | 
  ||||||||||||||||
| 
 Append the category pair matrix at the last. 
 
  | 
  
      
  | 
  
| 
 Output overall grammar information to stdout. 
 
 dfa_util.c の 33 行で定義されています。 参照元 print_info().  | 
  
      
  | 
  
| 
 Output the category-pair matrix in text format to stdout 
 
 dfa_util.c の 48 行で定義されています。 参照元 print_info().  | 
  
      
  | 
  ||||||||||||||||
| 
 Return whether the given two category can be connected or not. 
 
 
 参照元 cpair_append(), get_back_trellis_proceed(), lcdset_register_with_category(), lcdset_register_with_category_all(), と print_dfa_cp().  | 
  
      
  | 
  ||||||||||||
| 
 Return whether the category can be appear at the beginning of sentence. 
 
 
 参照元 cpair_append(), init_nodescore(), と print_dfa_cp().  | 
  
      
  | 
  ||||||||||||
| 
 Return whether the category can be appear at the end of sentence. 
 
 
 参照元 cpair_append(), と print_dfa_cp().  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Set the category-pair matrix bit 
 
 参照元 cpair_append(), extract_cpair(), malloc_dfa_cp(), と realloc_dfa_cp().  | 
  
      
  | 
  ||||||||||||||||
| 
 Set the category-pair matrix bit at the beginning of sentence 
 
 参照元 cpair_append(), extract_cpair(), malloc_dfa_cp(), と realloc_dfa_cp().  | 
  
      
  | 
  ||||||||||||||||
| 
 Set the category-pair matrix bit at the end of sentence 
 
 参照元 cpair_append(), extract_cpair(), malloc_dfa_cp(), と realloc_dfa_cp().  | 
  
      
  | 
  
| 
 Initialize category pair matrix in the grammar data. 
 
 参照元 dfa_info_new().  | 
  
      
  | 
  ||||||||||||
| 
 Allocate memory for category pair matrix and initialize it. 
 
 参照元 extract_cpair(), と realloc_dfa_cp().  | 
  
      
  | 
  ||||||||||||||||
| 
 Re-allocate memory for category pair matrix, can be called when the number of category is expanded. 
 
 参照元 cpair_append().  | 
  
      
  | 
  
| 
 Free the category pair matrix from DFA grammar. 
 
 参照元 dfa_info_free().  | 
  
      
  | 
  ||||||||||||
| 
 Make correspondence between all words in dictionary and categories in grammar, both from a word to a category and from a category to words. 
 
 init_dfa.c の 71 行で定義されています。 参照元 multigram_exec().  | 
  
      
  | 
  ||||||||||||||||
| 
 Make a word list for each category. 
 
 mkterminfo.c の 38 行で定義されています。 参照元 make_dfa_voca_ref().  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Append the terminal(category) word list. 
 
 mkterminfo.c の 76 行で定義されています。  | 
  
      
  | 
  ||||||||||||||||
| 
 Find pause word and pause category information, and set to the grammar data. 
 
 init_dfa.c の 104 行で定義されています。 参照元 multigram_exec().  | 
  
      
  | 
  ||||||||||||||||
| 
 Append the pause word/category information at the last. 
 
 init_dfa.c の 135 行で定義されています。  | 
  
 1.4.2