name: LanguageModelJSGF

synopsis:

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

#include <LanguageModelJSGF.h>

boolean read(Sof& sof, long tag, const String& cname = CLASS_NAME);
HierarchicalDigraph& getHDigraph();
quick start:

Sof sof;
sof.open("lm_jsgf_obj.sof", File::READ_ONLY);

LanguageModelJSGF lmjsgf;
lmjsgf.read(sof, 0);

HierarchicalDigraph hg;
hg.assign(lmjsgf.getHDigraph());
description:

The LanguageModelJSGF class is used to parse JSGF format grammars and convert them into ISIP's HierarchicalDigraph (IHD) format so they will be compatible with all ISIP tools. It also performs the reverse conversion. The JSGFParser class is used to parse all JSGF format content.

dependencies:

public constants:

error codes:

protected data:

required public methods:

other methods:

class-specific private methods:

examples: