Class SemanticRolesResult
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.SemanticRolesResult
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SemanticRolesResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The object containing the actions and the objects the actions act upon.
-
Constructor Summary
Constructors Constructor Description SemanticRolesResult() -
Method Summary
Modifier and Type Method Description SemanticRolesResultActiongetAction()Gets the action.SemanticRolesResultObjectgetObject()Gets the object.StringgetSentence()Gets the sentence.SemanticRolesResultSubjectgetSubject()Gets the subject.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
SemanticRolesResult
public SemanticRolesResult()
-
-
Method Details
-
getSentence
Gets the sentence.Sentence from the source that contains the subject, action, and object.
- Returns:
- the sentence
-
getSubject
Gets the subject.The extracted subject from the sentence.
- Returns:
- the subject
-
getAction
Gets the action.The extracted action from the sentence.
- Returns:
- the action
-
getObject
Gets the object.The extracted object from the sentence.
- Returns:
- the object
-