Browse
 
Tools
Rss Categories

Methods

1 LVGrammar::AddRule (Deprecated)

Add rules to a grammar object. Function int LVGrammar_AddRule(HGRAMMAR hgram, const char* rule_name, const char* rule_definition) Parameters hgram A handle to the grammar. rule_name The name of the rule rule_definition The definition of the rule Return Values…

2 LVGrammar::GetHGrammar

Return underlying grammar object handle. Function HGRAMMAR GetHGrammar() Return Values A pointer to the underlying grammar object. Remarks The LVGrammar class is just a thin wrapper of grammar object handle HGRAMMAR. See Also LVGrammar C++ API Summary HGRAMMAR…

3 LVGrammar::GetInterpretation

Returns the semantic interpretation handle indicated by the index. Function LVInterpretation GetInterpretation (int index) Parameters index The index of the interpretation handle to be returned. It should be in the range [0, (GetNumberOfInterpretations()…

4 LVGrammar::GetLanguage

LVGrammar::GetLanguage Return the language setting for the grammar, Function const char* GetLanguage() Parameters None. Return Values The language identifier of the grammar. See Also LVGrammar C++ API Summary LVGrammar_GetLanguage (C API)

5 LVGrammar::GetMetaDataKey

Return the value of the meta data indicated by the index. Function int GetMetaDataKey(int index) Parameters index Index of the meta data. It should be in the range [0, (GetNumberOfMetaData() - 1) ]. Return Values NULL The index is not valid. Non-NULL A pointer…

6 LVGrammar::GetMetaDataValue

Return the value of the meta data indicated by the index. Function int GetMetaDataValue(int index) Parameters index Index of the meta data. It should be in the range [0, (GetNumberOfMetaData() - 1) ]. Example If the grammar contains the following lines: meta…

7 LVGrammar::GetMode

Return the interaction mode for the grammar, Function const char* GetMode() Parameters None. Return Value Empty String No Semantic Interpretation available. String Either "voice" or "dtmf" See Also LVGrammar C++ API Summary LVGrammar_GetMode (C API)

8 LVGrammar::GetNumberOfInterpretations

Return the number of semantic interpretations created by the most recent call to InterpretParses. Function int GetNumberOfInterpretations() Parameters None. Return Values Non Negative integer Number of available interpretations. Remarks This function can…

9 LVGrammar::GetNumberOfMetaData

Return the number of meta data contained in the grammar. Function int GetNumberOfMetaData() Parameters None. Example If the grammar contains the following lines: meta 'description' is 'example grammar'; meta 'date' is '05/12/2005'; You can access meta data…

10 LVGrammar::GetNumberOfParses

Return the number of parses created by the most recent call of LVGrammar::ParseSentence. Function int GetNumberOfParses() Return Values 0 Error/warning reporting callback function pointer. non-0 The logging callback function pointer. Remarks This function…

1 2 3 Next