Julius 4.2
関数 | 変数
libsent/src/dfa/rddfa.c

DFA文法の読み込み [詳細]

#include <sent/stddefs.h>
#include <sent/dfa.h>

ソースコードを見る。

関数

void dfa_state_init (DFA_INFO *dinfo)
 Initialize and allocate DFA state information list in the grammar.
void dfa_state_expand (DFA_INFO *dinfo, int needed)
 Expand the state information list to the required length.
boolean rddfa (FILE *fp, DFA_INFO *dinfo)
 Top loop function to read DFA grammar via file pointer (gzip enabled)
boolean rddfa_fp (FILE *fp, DFA_INFO *dinfo)
 Top loop function to read DFA grammar via file descriptor.
boolean rddfa_line (char *line, DFA_INFO *dinfo, int *state_max, int *arc_num, int *terminal_max)
 Parse the input line and set grammar information, one by line.
void dfa_append (DFA_INFO *dst, DFA_INFO *src, int soffset, int coffset)
 Append the DFA state information to other.

変数

static char buf [MAXLINELEN]
 Local text buffer.

説明

DFA文法の読み込み

作者:
Akinobu LEE
日付:
Tue Feb 15 14:54:40 2005
Revision:
1.4

rddfa.c で定義されています。


関数

void dfa_state_init ( DFA_INFO dinfo)

Initialize and allocate DFA state information list in the grammar.

引数:
dinfo[i/o] DFA grammar

rddfa.c36 行で定義されています。

参照元 multigram_update(), rddfa(), と rddfa_fp().

void dfa_state_expand ( DFA_INFO dinfo,
int  needed 
)

Expand the state information list to the required length.

引数:
dinfo[i/o] DFA grammar
needed[in] required new length

rddfa.c57 行で定義されています。

参照元 dfa_append(), と rddfa_line().

boolean rddfa ( FILE *  fp,
DFA_INFO dinfo 
)

Top loop function to read DFA grammar via file pointer (gzip enabled)

引数:
fp[in] file pointer that points to the DFA grammar data
dinfo[out] the read data will be stored in this DFA grammar structure
戻り値:
TRUE on success, FALSE on failure.

rddfa.c80 行で定義されています。

参照元 init_dfa().

boolean rddfa_fp ( FILE *  fp,
DFA_INFO dinfo 
)

Top loop function to read DFA grammar via file descriptor.

引数:
fp[in] file pointer that points to the DFA grammar data
dinfo[out] the read data will be stored in this DFA grammar structure
戻り値:
TRUE on success, FALSE on failure.

rddfa.c110 行で定義されています。

boolean rddfa_line ( char *  line,
DFA_INFO dinfo,
int *  state_max,
int *  arc_num,
int *  terminal_max 
)

Parse the input line and set grammar information, one by line.

引数:
line[in] text buffer that holds a line of DFA file
dinfo[i/o] the read data will be appended to this DFA data
state_max[i/o] maximum number of state id appeared, will be updated
arc_num[i/o] number of read arcs, will be updated
terminal_max[i/o] maximum number of state id appended, will be updated
戻り値:
TRUE if the line was successfully parsed, FALSE if failed.

rddfa.c143 行で定義されています。

参照元 rddfa(), と rddfa_fp().

void dfa_append ( DFA_INFO dst,
DFA_INFO src,
int  soffset,
int  coffset 
)

Append the DFA state information to other.

引数:
dst[i/o] DFA grammar
src[i/o] DFA grammar to be appended to dst
soffset[in] offset state number in dst where the new state should be stored
coffset[in] category id offset in dst where the new data should be stored

rddfa.c218 行で定義されています。

参照元 multigram_append_to_global().