Julius 4.2
マクロ定義 | 関数
libsent/src/voca/voca_lookup.c

単語辞書上の単語の検索 [詳細]

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

ソースコードを見る。

マクロ定義

#define WSSTEP   10
 Allocation step.

関数

WORD_ID voca_lookup_wid (char *keyword, WORD_INFO *winfo)
 Look up a word on dictionary by string.
WORD_IDnew_str2wordseq (WORD_INFO *winfo, char *s, int *len_return)
 Convert string of space-separated word strings to array of word ids.

説明

単語辞書上の単語の検索

単語を,「言語エントリ名」あるいは「言語エントリ名[出力文字列]」 ,あるいは「::単語番号」から検索します.

作者:
Akinobu LEE
日付:
Fri Feb 18 21:24:01 2005
Revision:
1.3

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


関数

WORD_ID voca_lookup_wid ( char *  keyword,
WORD_INFO winfo 
)

Look up a word on dictionary by string.

引数:
keyword[in] keyword to search
winfo[in] word dictionary
戻り値:
the word id if found, or WORD_INVALID if not found.

voca_lookup.c43 行で定義されています。

参照元 initialize_dict(), と new_str2wordseq().

WORD_ID* new_str2wordseq ( WORD_INFO winfo,
char *  s,
int *  len_return 
)

Convert string of space-separated word strings to array of word ids.

引数:
winfo[in] word dictionary
s[in] string of space-separated word strings
len_return[out] number of found words
戻り値:
pointer to a newly allocated word list.

voca_lookup.c117 行で定義されています。