Class SemanticRolesResultSubject
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.SemanticRolesResultSubject
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SemanticRolesResultSubject
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The extracted subject from the sentence.
-
Constructor Summary
Constructors Constructor Description SemanticRolesResultSubject()
-
Method Summary
Modifier and Type Method Description List<SemanticRolesEntity>
getEntities()
Gets the entities.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
-
SemanticRolesResultSubject
public SemanticRolesResultSubject()
-
-
Method Details
-
getText
Gets the text.Text that corresponds to the subject role.
- Returns:
- the text
-
getEntities
Gets the entities.An array of extracted entities.
- Returns:
- the entities
-
getKeywords
Gets the keywords.An array of extracted keywords.
- Returns:
- the keywords
-