#include <LV_SRE_Semantic.h>
When the Call engine executes your semantic interpretation tags, the output is an ECMAScript (JavaScript) object. LumenVox provides a C and C++ API for examining this object. When the call engine has finished its decode, and processed the resulting parse tree and tags, you may request an interpretation object. The interpretation object contains information about the decode -- confidence score, matching grammar, etc -- plus a single semantic data object.
The function LVCA_GetInterpretationData will retrieve a H_SI handle. This is handle will be used with the functions found in the header LV_SRE_Semantic.h.
void* vSI;
LONG count;
LVCA_GetNumberOfSRGSInterpretations(hCA, &count);
for(int i = 0; i < count; i++)
{
LVCA_GetInterpretationData(hCA, i, &vSI);
H_SI hSI = (H_SI) vSI;
PrintXML(hSI);
PrintECMA(hSI);
LVIterpretation_Release(hSI);
}
Complete Help Topic List | Speech Platform Product Information