Browse
 
Tools
Rss Categories

LV_SRE_GetInterpretationScore

Reference Number: AA-00691 Views: 1485 0 Rating/ Voters

Provides the user with the confidence score for a given interpretation from a prior call to LV_SRE_Decode.

Function

  • int LV_SRE_GetInterpretationScore(HPORT hport, int VoiceChannel, int Index);

Parameters

hport

The port's handle obtained from a previous call to LV_SRE_CreateClient.

VoiceChannel

The channel containing the decoded audio that was specified in the previous call to LV_SRE_Decode.

Index

The index number of the specified interpretation ranging from 0 to LV_SRE_GetNumberOfInterpretations - 1.

Return Values

Non-negative number

No errors. The interpretation score has been returned.

LV_NO_ANSWERS_AVAILABLE

Indicates that the language specified in the grammar is either invalid or is not available on the ASR server.

LV_INVALID_HPORT

The input hport is not a valid one.

LV_NO_ANSWERS_AVAILABLE

Answers are not yet available.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

The interpretation score is the confidence score for a given interpretation. It will be a number between 0 and 1,000. Using GetInterpretationScore provides the same information as LVInterpretation_GetScore without the need to parse the semantic object.

See Also