NjxGetDicHandle Function

Description

This function is used to get a dictionary handle from the processing result structure.

Syntax

#include <mw/iwnn/iwnnCTR.h>

IWNN_DIC_HANDLE  NjxGetDicHandle(
     const IWNN_CLASS* iwnn,                     // Parsing information class
     const IWNN_RESULT* result                   // Processing result structure
);

Arguments

NameDescription
IN const IWNN_CLASS* iwnn Parsing information class. An error results if NULL is specified.
IN const IWNN_RESULT* result The processing result structure. Unable to retrieve is returned if NULL is specified.

Return Value

IWNN_DIC_HANDLE Dictionary handle.
NULL: Unable to retrieve.

Error Code Description of Error
NJ_ERR_PARAM_ENVIRONMENT_NULL A NULL pointer was specified for iwnn

The dictionary handle cannot be obtained when the following processing result structures have been specified.
  ■ When operation information is NJ_FUNC_CONVERT_MULTIPLE or NJ_FUNC_CONVERT_SINGLE resulting from execution of the API function for getting prediction candidates (NjxAnalyze)
  ■ When operation information is NJ_DIC_PSEUDO as a result of processing
  ■ When the processing result is NULL

In addition, the dictionary handle for independent words included in processing results can be retrieved from the IWNN_RESULT value obtained using the conversion function (NjxConversion) or the get-all-candidates function (NjxAllCandidates).

CONFIDENTIAL