MmxGetPartsOfSpeech Function

Description

This function returns the part-of-speech classification for a specific word. The delimited input file from which this information is obtained is generated by one of this API's functions. Do not specify a result file that was not generated by one of this API's functions.

Part-of-Speech Groups

Part-of-Speech Groups Description Example
Noun Group (MM_PARTS_OF_SPEECH_GROUP_NOUN) Part of speech related to nouns (such as nouns, proper nouns, names of people, and names of places). Children
Pseudo Group (MM_PARTS_OF_SPEECH_GROUP_PSEUDO) Pseudo or word not in dictionary. ABCDEFG
Other (MM_PARTS_OF_SPEECH_GROUP_OTHER) Parts of speech other than the above. Move

Syntax

#include <mw/iwnn/iwnnCTR.h>

s16 MmxGetPartsOfSpeech(
     IWNN_CLASS* iwnn,                             // Parsing information class
     const IWNN_RESULT* result                     // Processing result
);

Arguments

NameDescription
IN / OUT IWNN_CLASS* iwnn Parsing information class
An error results if NULL is specified.
IN const IWNN_RESULT* result The delimited input result.
An error results if NULL is specified.

Return Value

s16 Obtained part of speech group
Negative value: Error

Error Code Description of Error
NJ_ERR_PARAM_ENVIRONMENT_NULL A NULL pointer was specified for iwnn
NJ_ERR_PARAM_RESULT_NULL A NULL pointer was specified for result
NJ_ERR_INVALID_RESULT Data other than the result of morphological analysis was specified for result
NJ_ERR_NO_RULE_DIC Returned when a rule dictionary was not set in iwnn->dicSet

CONFIDENTIAL