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 Details

    • SemanticRolesResultObject

      public SemanticRolesResultObject()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      Object text.

      Returns:
      the text
    • getKeywords

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

      An array of extracted keywords.

      Returns:
      the keywords