Function GenieAccuracy_createFromNode

Function Documentation

Genie_Status_t GenieAccuracy_createFromNode(const GenieAccuracyConfig_Handle_t configHandle, const GenieNode_Handle_t nodeHandle, GenieAccuracy_Handle_t *accuracyHandle)

A function to create an accuracy handle from an existing node.

Parameters
  • configHandle[in] A handle to a valid config. Can be NULL which indicates that perplexity will be calculated.

  • nodeHandle[in] A reference to the node handle which will be bound to the created accuracy handle. Must not be NULL.

  • accuracyHandle[out] A reference to the created accuracy handle. Must not be NULL.

Returns

Status code:

  • GENIE_STATUS_SUCCESS: API call was successful.

  • GENIE_STATUS_ERROR_INVALID_ARGUMENT: At least one argument is invalid.

  • GENIE_STATUS_ERROR_INVALID_HANDLE: one of the handles provided in the arguments is invalid.

  • GENIE_STATUS_ERROR_MEM_ALLOC: Memory allocation failure.

Note

Currently, only TextGenerators are supported for the node type.