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 Details

    • SemanticRolesResultSubject

      public SemanticRolesResultSubject()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      Text that corresponds to the subject role.

      Returns:
      the text
    • getEntities

      public List<SemanticRolesEntity> getEntities()
      Gets the entities.

      An array of extracted entities.

      Returns:
      the entities
    • getKeywords

      public List<SemanticRolesKeyword> getKeywords()
      Gets the keywords.

      An array of extracted keywords.

      Returns:
      the keywords