- Installation
- Administration
- Programmer's Guide
- Grammars
- MRCP Server
- FAQs
The following C API is exported from "LV_SRE_ParseTree.h". An LVParseTree class is available for C++ programmers which wraps this API.
| Function | Return Type | Description |
|---|---|---|
| LVParseTree_Create(void) | H_PARSE_TREE | Constructs an LVParseTree object. |
| LVParseTree_CreateFromCopy(H_PARSE_TREE Other) | H_PARSE_TREE | Copy constructor |
| LVParseTree_Copy(H_PARSE_TREE Tree, H_PARSE_TREE Other) | void | Assignment operator |
| LVParseTree_Release (H_PARSE_TREE Tree) | void | Destroys the LVParseTree object |
| LVParseTree_GetRoot (H_PARSE_TREE Tree) | H_PARSE_TREE_NODE | Provides access to the parent node in the parse tree. |
| LVParse_CreateIteratorBegin (H_PARSE_TREE Tree) | H_PARSE_TREE_ITR | Provides an iterator that walks each node in the tree in a top-to-bottom, left-to-right fashion |
| LVParseTree_CreateIteratorEnd (H_PARSE_TREE Tree) | H_PARSE_TREE_ITR | Marks the end of traversal for the parse tree iterator |
| LVParseTree_CreateTerminalIteratorBegin (H_PARSE_TREE Tree) | H_PARSE_TREE_TERMINAL_ITR | Traverses the terminals of the parse tree (words). |
| LVParseTree_CreateTerminalIteratorEnd (H_PARSE_TREE Tree) | H_PARSE_TREE_TERMINAL_ITR | Marks the end of traversal for the TerminalIterator. |
| LVParseTree_CreateTagIteratorBegin (H_PARSE_TREE Tree) | H_PARSE_TREE_TAG_ITR | Traverses the tags in the parse tree (semantic data). |
| LVParseTree_CreateTagIteratorEnd (H_PARSE_TREE Tree) | H_PARSE_TREE_TAG_ITR | Marks the end of traversal for the TagIterator |
| LVParseTree_GetTagFormat (H_PARSE_TREE Tree) | const char* | Returns the tag format, as described by the grammar that this tree matched (e.g. "lumenvox/1.0" or "semantics/1.0") |
| LVParseTree_GetNumberOfTagsInHeader (H_PARSE_TREE Tree) | int | Returns the number of tags (semantic data) that were defined in the matching grammar's header. |
| LVParseTree_GetHeaderTag (H_PARSE_TREE Tree, int i) | const char* | Returns the ith header tag from the matching grammar. |
| LVParseTree_GetGrammarLabel (H_PARSE_TREE Tree) | const char* | Returns the name of the matching grammar that was provided to the speech port when it was loaded |
| LVParseTree_GetMode (H_PARSE_TREE Tree) | const char* | Returns the mode of the utterance decode that created this tree: "voice" or "dtmf" |
| LVParseTree_GetLanguage (H_PARSE_TREE Tree ) | const char* | Returns the language of the matching grammar (e.g. "en-US" or "es-MX") |
See Also Using the Parse Tree Tutorial