Provides the vocabulary size of the specified grammar.
Function
- int GetGrammarVocabSize(const char* GrammarLabel)
Parameters
GrammarLabel
The label of the grammar whose vocab size needs to be returned.
Return Values
Non-negative number
No errors.
LV_FAILURE
Grammar did not load successfully.
LV_INVALID_GRAMMAR_LABEL
Indicates GrammarLabel is not valid.
LV_INVALID_HPORT
The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).
LV_EXCEPTION
An exception occurred while processing the request.
Remarks
The vocabulary size of the grammar returned by this function is the number that is used to limit licensing for Tier 1 and Tier 2 (VoxLite) licenses.
See Also