libsent/src/ngram/ngram_malloc.c File Reference

Initial memory allocation and free for N-gram stucture. More...

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

Go to the source code of this file.

Functions

NGRAM_INFOngram_info_new ()
 Allocate a new N-gram structure.
static void free_ngram_tuple (NGRAM_TUPLE_INFO *t)
void ngram_info_free (NGRAM_INFO *ndata)
 Free N-gram data.


Detailed Description

Initial memory allocation and free for N-gram stucture.

Author:
Akinobu LEE
Date:
Wed Feb 16 16:48:56 2005
Revision
1.1.1.1

Definition in file ngram_malloc.c.


Function Documentation

NGRAM_INFO* ngram_info_new (  ) 

Allocate a new N-gram structure.

Returns:
pointer to the newly allocated structure.

Definition at line 34 of file ngram_malloc.c.

Referenced by initialize_ngram().

void ngram_info_free ( NGRAM_INFO ndata  ) 

Free N-gram data.

Parameters:
ndata [in] N-gram data

Definition at line 67 of file ngram_malloc.c.

Referenced by initialize_ngram(), and j_process_lm_free().


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