NLSML Result Handling.
More...
#include <apr_xml.h>
#include "apt.h"
Go to the source code of this file.
|
typedef
typedefAPT_BEGIN_EXTERN_C
struct nlsml_result_t | nlsml_result_t |
|
typedef struct
nlsml_interpretation_t | nlsml_interpretation_t |
|
typedef struct
nlsml_enrollment_result_t | nlsml_enrollment_result_t |
|
typedef struct
nlsml_verification_result_t | nlsml_verification_result_t |
|
typedef struct nlsml_instance_t | nlsml_instance_t |
|
typedef struct nlsml_input_t | nlsml_input_t |
|
nlsml_enrollment_result_t* nlsml_first_enrollment_result_get |
( |
const nlsml_result_t * |
result | ) |
|
Get first enrollment result
- Parameters
-
result | the parsed NLSML result which holds the list of enrollment-result elements |
nlsml_interpretation_t* nlsml_first_interpretation_get |
( |
const nlsml_result_t * |
result | ) |
|
Get first interpretation
- Parameters
-
result | the parsed NLSML result which holds the list of interpretation elements |
nlsml_verification_result_t* nlsml_first_verification_result_get |
( |
const nlsml_result_t * |
result | ) |
|
Get first verification result
- Parameters
-
result | the parsed NLSML result which holds the list of verification-result elements |
float nlsml_input_confidence_get |
( |
const nlsml_input_t * |
input | ) |
|
Get input confidence
- Parameters
-
input | the parsed input element |
const char* nlsml_input_content_generate |
( |
const nlsml_input_t * |
input, |
|
|
apr_pool_t * |
pool |
|
) |
| |
Generate a plain text content of the input element
- Parameters
-
input | the parsed input to generate content of |
pool | the memory pool to use |
const apr_xml_elem* nlsml_input_elem_get |
( |
const nlsml_input_t * |
input | ) |
|
Get an XML representation of the input element
- Parameters
-
input | the parsed input element |
const char* nlsml_input_mode_get |
( |
const nlsml_input_t * |
input | ) |
|
Get input mode
- Parameters
-
input | the parsed input element |
const char* nlsml_input_timestamp_end_get |
( |
const nlsml_input_t * |
input | ) |
|
Get end of input timestamp
- Parameters
-
input | the parsed input element |
const char* nlsml_input_timestamp_start_get |
( |
const nlsml_input_t * |
input | ) |
|
Get start of input timestamp
- Parameters
-
input | the parsed input element |
const char* nlsml_instance_content_generate |
( |
const nlsml_instance_t * |
instance, |
|
|
apr_pool_t * |
pool |
|
) |
| |
Generate a plain text content of the instance element
- Parameters
-
instance | the parsed instance to generate content of |
pool | the memory pool to use |
const apr_xml_elem* nlsml_instance_elem_get |
( |
const nlsml_instance_t * |
instance | ) |
|
Get an XML representation of the instance element
- Parameters
-
instance | the parsed instance element |
apt_bool_t nlsml_instance_swi_suppress |
( |
nlsml_instance_t * |
instance | ) |
|
Suppress SWI elements (normalize instance)
- Parameters
-
instance | the parsed instance to suppress SWI sub-elements from |
float nlsml_interpretation_confidence_get |
( |
const nlsml_interpretation_t * |
interpretation | ) |
|
Get interpretation confidence
- Parameters
-
interpretation | the parsed interpretation element |
nlsml_instance_t* nlsml_interpretation_first_instance_get |
( |
const nlsml_interpretation_t * |
interpretation | ) |
|
Get first instance
- Parameters
-
interpretation | the parsed interpretation element which holds the list of instance elements |
const char* nlsml_interpretation_grammar_get |
( |
const nlsml_interpretation_t * |
interpretation | ) |
|
Get interpretation grammar
- Parameters
-
interpretation | the parsed interpretation element |
nlsml_input_t* nlsml_interpretation_input_get |
( |
const nlsml_interpretation_t * |
interpretation | ) |
|
Get input
- Parameters
-
interpretation | the parsed interpretation element which may have 0 or 1 input elements |
nlsml_instance_t* nlsml_interpretation_next_instance_get |
( |
const nlsml_interpretation_t * |
interpretation, |
|
|
const nlsml_instance_t * |
instance |
|
) |
| |
Get next instance
- Parameters
-
interpretation | the parsed interpretation element which holds the list of instance elements |
instance | the current instance element |
nlsml_enrollment_result_t* nlsml_next_enrollment_result_get |
( |
const nlsml_result_t * |
result, |
|
|
const nlsml_enrollment_result_t * |
enrollment_result |
|
) |
| |
Get next enrollment result
- Parameters
-
result | the parsed NLSML result which holds the list of enrollment-result elements |
enrollment_result | the current enrollment-result element |
nlsml_interpretation_t* nlsml_next_interpretation_get |
( |
const nlsml_result_t * |
result, |
|
|
const nlsml_interpretation_t * |
interpretation |
|
) |
| |
Get next interpretation
- Parameters
-
result | the parsed NLSML result which holds the list of interpretation elements |
interpretation | the current interpretation element |
nlsml_verification_result_t* nlsml_next_verification_result_get |
( |
const nlsml_result_t * |
result, |
|
|
const nlsml_verification_result_t * |
verification_result |
|
) |
| |
Get next verification result
- Parameters
-
result | the parsed NLSML result which holds the list of verification-result elements |
verification_result | the current verification-result element |
const char* nlsml_result_grammar_get |
( |
const nlsml_result_t * |
result | ) |
|
Get the grammar attribute of the NLSML result
- Parameters
-
nlsml_result_t* nlsml_result_parse |
( |
const char * |
data, |
|
|
apr_size_t |
length, |
|
|
apr_pool_t * |
pool |
|
) |
| |
Parse NLSML result
- Parameters
-
data | the data to parse |
length | the length of the data |
pool | the memory pool to use |
- Returns
- the parsed NLSML result.
void nlsml_result_trace |
( |
const nlsml_result_t * |
result, |
|
|
apr_pool_t * |
pool |
|
) |
| |
Trace parsed NLSML result (for debug purposes only)
- Parameters
-
result | the parsed result to output |
pool | the memory pool to use |