libsent/src/voca/voca_malloc.c File Reference

Memory allocation of word dictionary information. More...

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

Go to the source code of this file.

Functions

WORD_INFOword_info_new ()
 Allocate a new word dictionary structure.
void word_info_free (WORD_INFO *winfo)
 Free all informations in the WORD_INFO.
void winfo_init (WORD_INFO *winfo)
 Initialize a new word dictionary structure.
boolean winfo_expand (WORD_INFO *winfo)
 Expand the word dictionary.


Detailed Description

Memory allocation of word dictionary information.

Author:
Akinobu LEE
Date:
Fri Feb 18 21:33:29 2005
Revision
1.1.1.1

Definition in file voca_malloc.c.


Function Documentation

WORD_INFO* word_info_new (  ) 

Allocate a new word dictionary structure.

Returns:
pointer to the newly allocated WORD_INFO.

Definition at line 35 of file voca_malloc.c.

Referenced by initialize_dict(), multigram_read_file_and_add(), multigram_update(), and read_grammar_from_socket().

void word_info_free ( WORD_INFO winfo  ) 

Free all informations in the WORD_INFO.

Parameters:
winfo [i/o] word dictionary data to be freed.

Definition at line 51 of file voca_malloc.c.

Referenced by initialize_dict(), j_process_lm_free(), multigram_exec_delete(), multigram_free_all(), multigram_read_file_and_add(), and multigram_update().

void winfo_init ( WORD_INFO winfo  ) 

Initialize a new word dictionary structure.

Parameters:
winfo [i/o] word dictionary to be initialized.

Definition at line 75 of file voca_malloc.c.

Referenced by multigram_update(), and voca_load_start().

boolean winfo_expand ( WORD_INFO winfo  ) 

Expand the word dictionary.

Parameters:
winfo [i/o] word dictionary to be expanded.

Definition at line 105 of file voca_malloc.c.

Referenced by voca_load_line(), and voca_load_word_line().


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