SR_SemanticProcessor Struct Reference


Detailed Description

Wrapper for the eScript Semantic Processor Implementation.

Data Fields

ESR_ReturnCode(* checkParse )(struct SR_SemanticProcessor_t *self, SR_SemanticGraph *semgraph, const LCHAR *transcription, SR_SemanticResult **result, size_t *resultCount)
ESR_ReturnCode(* checkParseByWordID )(struct SR_SemanticProcessor_t *self, SR_SemanticGraph *semgraph, wordID *wordIDs, SR_SemanticResult **result, size_t *resultCount)
ESR_ReturnCode(* destroy )(struct SR_SemanticProcessor_t *self)
ESR_ReturnCode(* setParam )(struct SR_SemanticProcessor_t *self, const LCHAR *key, const LCHAR *value)
ESR_ReturnCode(* flush )(struct SR_SemanticProcessor_t *self)

Field Documentation

ESR_ReturnCode(* SR_SemanticProcessor::checkParse)(struct SR_SemanticProcessor_t *self, SR_SemanticGraph *semgraph, const LCHAR *transcription, SR_SemanticResult **result, size_t *resultCount)

Parse a graph with the processor provided as argument. Store semantic results in the objects pointed to by each element in the array provided. In other words, each element of the array is a pointer to a SemanticResult object created (and destroyed) by the caller of the function. The size of the array must be SWIrecResultData **result_dataindicated in resultCount. If the array is not big enough, ESR_BUFFER_OVERFLOW is returned with resultCount set to the size required.

ESR_ReturnCode(* SR_SemanticProcessor::checkParseByWordID)(struct SR_SemanticProcessor_t *self, SR_SemanticGraph *semgraph, wordID *wordIDs, SR_SemanticResult **result, size_t *resultCount)

Parse a graph with the processor provided as argument. Store semantic results in the objects pointed to by each element in the array provided. In other words, each element of the array is a pointer to a SemanticResult object created (and destroyed) by the caller of the function. The size of the array must be SWIrecResultData **result_dataindicated in resultCount. If the array is not big enough, ESR_BUFFER_OVERFLOW is returned with resultCount set to the size required.

ESR_ReturnCode(* SR_SemanticProcessor::destroy)(struct SR_SemanticProcessor_t *self)

Frees the memory used by the Semantic Processor.

Parameters:
self SR_SemanticProcessor handle

ESR_ReturnCode(* SR_SemanticProcessor::setParam)(struct SR_SemanticProcessor_t *self, const LCHAR *key, const LCHAR *value)

Set a param to be read by Semantic Processor during processing.

Parameters:
self SR_SemanticProcessor handle
key The name of the param
value The value of the param

ESR_ReturnCode(* SR_SemanticProcessor::flush)(struct SR_SemanticProcessor_t *self)

Flush the internals of the semantic processor

Parameters:
self SR_SemanticProcessor handle


Generated on Thu May 1 15:37:28 2008 for SREC by  doxygen 1.5.3