Edinburgh Speech Tools  2.1-release
ngrammar_io.cc File Reference
#include <cstdlib>
#include <fstream>
#include <iostream>
#include "EST_unix.h"
#include <cstring>
#include <climits>
#include <cfloat>
#include "EST_String.h"
#include "EST_Ngrammar.h"
#include "EST_Token.h"
#include "EST_cutils.h"
#include "EST_File.h"
Include dependency graph for ngrammar_io.cc:

Go to the source code of this file.

Functions

EST_read_status load_ngram_htk_ascii (const EST_String filename, EST_Ngrammar &n)
 
EST_read_status load_ngram_htk_binary (const EST_String filename, EST_Ngrammar &n)
 
EST_read_status load_ngram_arpa (const EST_String filename, EST_Ngrammar &n, const EST_StrList &vocab)
 
EST_read_status load_ngram_cstr_ascii (const EST_String filename, EST_Ngrammar &n)
 
EST_read_status load_ngram_cstr_bin (const EST_String filename, EST_Ngrammar &n)
 
EST_write_status save_ngram_htk_ascii_sub (const EST_String &word, ostream *ost, EST_Ngrammar &n, double floor)
 
EST_write_status save_ngram_htk_ascii (const EST_String filename, EST_Ngrammar &n, double floor)
 
void count_ngram_arpa_sub (EST_Ngrammar *n, EST_StrVector &ngram, void *count)
 
void save_ngram_arpa_sub (EST_Ngrammar *n, EST_StrVector &ngram, void *ost)
 
EST_write_status save_ngram_arpa (const EST_String filename, EST_Ngrammar &n)
 
EST_write_status save_ngram_cstr_ascii (const EST_String filename, EST_Ngrammar &n, const bool trace, double floor)
 
EST_write_status save_ngram_wfst (const EST_String filename, EST_Ngrammar &n)
 
EST_write_status save_ngram_cstr_bin (const EST_String filename, EST_Ngrammar &n, const bool trace, double floor)
 

Function Documentation

EST_read_status load_ngram_htk_ascii ( const EST_String  filename,
EST_Ngrammar n 
)

Definition at line 58 of file ngrammar_io.cc.

EST_read_status load_ngram_htk_binary ( const EST_String  filename,
EST_Ngrammar n 
)

Definition at line 66 of file ngrammar_io.cc.

EST_read_status load_ngram_arpa ( const EST_String  filename,
EST_Ngrammar n,
const EST_StrList vocab 
)

Definition at line 74 of file ngrammar_io.cc.

EST_read_status load_ngram_cstr_ascii ( const EST_String  filename,
EST_Ngrammar n 
)

Definition at line 227 of file ngrammar_io.cc.

EST_read_status load_ngram_cstr_bin ( const EST_String  filename,
EST_Ngrammar n 
)

Definition at line 289 of file ngrammar_io.cc.

EST_write_status save_ngram_htk_ascii_sub ( const EST_String word,
ostream *  ost,
EST_Ngrammar n,
double  floor 
)

Definition at line 424 of file ngrammar_io.cc.

EST_write_status save_ngram_htk_ascii ( const EST_String  filename,
EST_Ngrammar n,
double  floor 
)

Definition at line 565 of file ngrammar_io.cc.

void count_ngram_arpa_sub ( EST_Ngrammar n,
EST_StrVector ngram,
void *  count 
)

Definition at line 640 of file ngrammar_io.cc.

void save_ngram_arpa_sub ( EST_Ngrammar n,
EST_StrVector ngram,
void *  ost 
)

Definition at line 647 of file ngrammar_io.cc.

EST_write_status save_ngram_arpa ( const EST_String  filename,
EST_Ngrammar n 
)

Definition at line 670 of file ngrammar_io.cc.

EST_write_status save_ngram_cstr_ascii ( const EST_String  filename,
EST_Ngrammar n,
const bool  trace,
double  floor 
)

Definition at line 747 of file ngrammar_io.cc.

EST_write_status save_ngram_wfst ( const EST_String  filename,
EST_Ngrammar n 
)

Definition at line 806 of file ngrammar_io.cc.

EST_write_status save_ngram_cstr_bin ( const EST_String  filename,
EST_Ngrammar n,
const bool  trace,
double  floor 
)

Definition at line 844 of file ngrammar_io.cc.