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 Details

    • SemanticRolesResult

      public SemanticRolesResult()
  • Method Details

    • getSentence

      public String getSentence()
      Gets the sentence.

      Sentence from the source that contains the subject, action, and object.

      Returns:
      the sentence
    • getSubject

      public SemanticRolesResultSubject getSubject()
      Gets the subject.

      The extracted subject from the sentence.

      Returns:
      the subject
    • getAction

      public SemanticRolesResultAction getAction()
      Gets the action.

      The extracted action from the sentence.

      Returns:
      the action
    • getObject

      public SemanticRolesResultObject getObject()
      Gets the object.

      The extracted object from the sentence.

      Returns:
      the object