libsent/src/voca/voca_lookup.c File Reference

Look up a word on dictionary by string. More...

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

Go to the source code of this file.

Defines

#define WSSTEP   10
 Allocation step.

Functions

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.


Detailed Description

Look up a word on dictionary by string.

String can be "langentry" or "langentry[outputstring]", or "#number".

Author:
Akinobu LEE
Date:
Fri Feb 18 21:24:01 2005
Revision
1.1.1.1

Definition in file voca_lookup.c.


Function Documentation

WORD_ID voca_lookup_wid ( char *  keyword,
WORD_INFO winfo 
)

Look up a word on dictionary by string.

Parameters:
keyword [in] keyword to search
winfo [in] word dictionary
Returns:
the word id if found, or WORD_INVALID if not found.

Definition at line 43 of file voca_lookup.c.

Referenced by initialize_dict(), and 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.

Parameters:
winfo [in] word dictionary
s [in] string of space-separated word strings
len_return [out] number of found words
Returns:
pointer to a newly allocated word list.

Definition at line 117 of file voca_lookup.c.


Generated on Tue Dec 18 16:01:41 2007 for Julius by  doxygen 1.5.4