name: NGramParser

synopsis:


g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_mmedia.a

#include <NGramParser.h>

boolean setOrder(long order);
long getOrder() const;
boolean load(Sof& sof, HashTable<Long, NGramNode>& gram_hash, const Vector<String>& symbol_table, const long& tag, const String& name);
boolean NGramParser::store(Sof& file, const HashTable<Long, NGramNode>& gram_hash, const Vector<String>& symbol_table, const long& tag, const String& name) const;
quick start:


Sof tmp_sof;
String file_name;
Vector symbol_table;
HashTable gram_hash;

file_name.assign(L"tidigits_trigram.arpa");
tmp_sof.open(file_name, File::READ_ONLY);

NGramParser np_00;

np_00.load(tmp_sof, gram_hash, symbol_table, 1, L"NGramModel");

tmp_sof.close();

description:

This class manages the N-gram grammar. It can be used to convert NIST_ARPA or other grammar format to ISIP internal format.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: