LVGrammar_CreateParseTree

Return the parse tree handle with the specified index.

Function

H_PARSE_TREE LVGrammar_CreateParseTree(HGRAMMAR hgram, int index)

Parameters

hgram

A handle to the grammar.

index

The index of the parse tree handle to be returned. It should be in the range [0, LVGrammar_GetNumberOfParses).

Return Values

null

The index is not valid.

non-null

The parse tree handle.

Remarks

This function should be used after a call to LVGrammar_ParseSentence.

If the returned handle is not null, you need to call LVParseTree_Release to destroy the parse tree object pointed by the handle.

See Also


Complete Help Topic List | Speech Engine Product Information