java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.RelationsResult
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class RelationsResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The relations between entities found in the content.
  • Constructor Details

    • RelationsResult

      public RelationsResult()
  • Method Details

    • getScore

      public Double getScore()
      Gets the score.

      Confidence score for the relation. Higher values indicate greater confidence.

      Returns:
      the score
    • getSentence

      public String getSentence()
      Gets the sentence.

      The sentence that contains the relation.

      Returns:
      the sentence
    • getType

      public String getType()
      Gets the type.

      The type of the relation.

      Returns:
      the type
    • getArguments

      public List<RelationArgument> getArguments()
      Gets the arguments.

      Entity mentions that are involved in the relation.

      Returns:
      the arguments