Julius 4.2
関数
libsent/src/dfa/mkcpair.c

文法からカテゴリ対制約を抽出する [詳細]

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

ソースコードを見る。

関数

boolean extract_cpair (DFA_INFO *dinfo)
 Extract category-pair constraint from DFA grammar and newly set the category pair matrix of the give DFA.
boolean cpair_append (DFA_INFO *dst, DFA_INFO *src, int coffset)
 Append the category pair matrix at the last.

説明

文法からカテゴリ対制約を抽出する

DFA文法から,認識処理の第1パスで用いるカテゴリ間の接続制約を抽出します. 抽出したカテゴリ対情報は文法データ内に格納されます.

ショートポーズ単語が文法上で指定されている場合,接続制約はこの ショートポーズ単語のスキップを考慮して抽出されます.

なお,ここでは処理上の制限から,このスキップ可能なショートポーズ単語が 文頭およぶ文末に出現することは許されていません. 入力開始・終端の無音部分にあたる単語は,silB, silE など このスキップ可能なショートポーズ以外の単語を割り当てるようにしてください

作者:
Akinobu LEE
日付:
Tue Feb 15 14:35:33 2005
Revision:
1.5

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


関数

boolean extract_cpair ( DFA_INFO dinfo)

Extract category-pair constraint from DFA grammar and newly set the category pair matrix of the give DFA.

引数:
dinfo[i/o] DFA grammar, in which the category-pair matrix will be created.

mkcpair.c61 行で定義されています。

参照元 multigram_update().

boolean cpair_append ( DFA_INFO dst,
DFA_INFO src,
int  coffset 
)

Append the category pair matrix at the last.

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

mkcpair.c123 行で定義されています。

参照元 multigram_append_to_global().