Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

voca_lookup.c File Reference

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

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

Include dependency graph for voca_lookup.c:

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)
WORD_IDnew_str2wordseq (WORD_INFO *winfo, char *s, int *len_return)


Detailed Description

Look up a word on dictionary by string.

Author:
Akinobu LEE
Date:
Fri Feb 18 21:24:01 2005
String can be "langentry" or "langentry[outputstring]", or "#number".

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 42 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 116 of file voca_lookup.c.


Generated on Tue Mar 28 16:03:39 2006 for Julius by  doxygen 1.4.2