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

単語辞書の単語に対応するカテゴリ番号を返す [詳細]

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

ソースコードを見る。

関数

WORD_ID dfa_symbol_lookup (DFA_INFO *dinfo, char *terminalname)
 Return category id corresponding to the given terminal name.

説明

単語辞書の単語に対応するカテゴリ番号を返す

実際には文法コンパイラ mkdfa.pl で各単語にカテゴリ番号が既に 割り当てられているので,ここでは値のチェックのみ行います.

作者:
Akinobu LEE
日付:
Tue Feb 15 14:11:41 2005
Revision:
1.3

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


関数

WORD_ID dfa_symbol_lookup ( DFA_INFO dinfo,
char *  terminalname 
)

Return category id corresponding to the given terminal name.

Actually they are mere strings of ID itself.

引数:
dinfo[in] DFA grammar information
terminalname[in] name string
戻り値:
the category id.

dfa_lookup.c45 行で定義されています。

参照元 make_dfa_voca_ref().