LVParseTree Class

The following C API is exported from "LV_SRE_ParseTree.h".  An LVParseTree class is available for C++ programmers which wraps this API.

See Also Using the Parse Tree Tutorial

Return Type

Function

Description

H_PARSE_TREE

LVParseTree_Create(void)

Constructs an LVParseTree object.

H_PARSE_TREE

LVParseTree_CreateFromCopy(H_PARSE_TREE Other)

Copy constructor

void

LVParseTree_Copy(H_PARSE_TREE Tree, H_PARSE_TREE Other)

Assignment operator

void

LVParseTree_Release (H_PARSE_TREE Tree)

Destroys the LVParseTree object

 

 

 

H_PARSE_TREE_NODE

LVParseTree_GetRoot (H_PARSE_TREE Tree)

Provides access to the parent node in the parse tree.

 

 

 

H_PARSE_TREE_ITR

LVParse_CreateIteratorBegin (H_PARSE_TREE Tree)

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

H_PARSE_TREE_ITR

LVParseTree_CreateIteratorEnd (H_PARSE_TREE Tree)

Marks the end of traversal for the parse tree iterator

H_PARSE_TREE_TERMINAL_ITR

LVParseTree_CreateTerminalIteratorBegin (H_PARSE_TREE Tree)

Traverses the terminals of the parse tree (words).

H_PARSE_TREE_TERMINAL_ITR

LVParseTree_CreateTerminalIteratorEnd (H_PARSE_TREE Tree)

Marks the end of traversal for the TerminalIterator.

H_PARSE_TREE_TAG_ITR

LVParseTree_CreateTagIteratorBegin (H_PARSE_TREE Tree)

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

H_PARSE_TREE_TAG_ITR

LVParseTree_CreateTagIteratorEnd (H_PARSE_TREE Tree)

Marks the end of traversal for the TagIterator

 

 

 

const char*

LVParseTree_GetTagFormat (H_PARSE_TREE Tree)

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

int

LVParseTree_GetNumberOfTagsInHeader (H_PARSE_TREE Tree)

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

const char*

LVParseTree_GetHeaderTag (H_PARSE_TREE Tree, int i)

Returns the ith header tag from the matching grammar.

const char*

LVParseTree_GetGrammarLabel (H_PARSE_TREE Tree)

Returns the name of the matching grammar that was provided to the speech port when it was loaded

const char*

LVParseTree_GetMode (H_PARSE_TREE Tree)

Returns the mode of  the utterance decode that created this tree: "voice" or "dtmf"

const char*

LVParseTree_GetLanguage (H_PARSE_TREE Tree )

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

 

 

 

 

 

 


Complete Help Topic List | Speech Engine Product Information