LVParseTree Class

An LVParseTree object represents the results of a decode using a context free grammar.  

Use <LVSpeechPort.h> or <LV_SRE_ParseTree.h>

See Also Using the Parse Tree Tutorial

Return Type

Function

Description

 

 

 

 

LVParseTree(void)

Constructs an LVParseTree object.

 

LVParseTree(const LVParseTree& other)

Copy constructor

LVParseTree

operator=(const LVParseTree& other)

Assignment operator

 

~LVParseTree(void)

Destroys the LVParseTree object

 

 

 

LVParseTree::Node

Root (void)

Provides access to the parent node in the parse tree.

 

 

 

LVParseTree::Iterator

Begin (void)

Provides an iterator that walks each node in the tree in a top-to-bottom, left-to-right fashion

LVParseTree::Iterator

End (void)

Marks the end of traversal for the parse tree iterator

LVParseTree::TerminalIterator

TerminalsBegin (void)

Traverses the terminals of the parse tree (words).

LVParseTree::TerminalIterator

TerminalsEnd (void)

Marks the end of traversal for the TerminalIterator.

LVParseTree::TagIterator

TagsBegin (void)

Traverses the tags in the parse tree (semantic data).

LVParseTree::TagIterator

TagsEnd (void)

Marks the end of traversal for the TagIterator.

 

 

 

const char*

TagFormat (void)

Returns the tag format, as described by the grammar that this tree matched (e.g. "lumenvox/1.0" or "semantics/1.0")

int

NumberOfTagsInHeader (void)

Returns the number of tags (semantic data) that were defined in the matching grammar's header.

const char*

HeaderTag (int i)

Returns the ith header tag from the matching grammar.

const char*

GrammarLabel (void)

Returns the name of the grammar as it was provided to the speech port.

const char*

Mode (void)

"voice" or "dtmf"

const char*

Language (void)

Returns the language of the matching grammar (e.g. "en-US" or "es-MX")

 

 

 

 

 

 

 

 

 

 

 

 


Complete Help Topic List | Speech Engine Product Information