Class SemanticRolesResultObject
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.SemanticRolesResultObject
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SemanticRolesResultObject
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The extracted object from the sentence.
-
Constructor Summary
Constructors Constructor Description SemanticRolesResultObject()
-
Method Summary
Modifier and Type Method Description List<SemanticRolesKeyword>
getKeywords()
Gets the keywords.String
getText()
Gets the text.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
SemanticRolesResultObject
public SemanticRolesResultObject()
-
-
Method Details
-
getText
Gets the text.Object text.
- Returns:
- the text
-
getKeywords
Gets the keywords.An array of extracted keywords.
- Returns:
- the keywords
-