Class RelationsResult
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 Summary
Constructors Constructor Description RelationsResult()
-
Method Summary
Modifier and Type Method Description List<RelationArgument>
getArguments()
Gets the arguments.Double
getScore()
Gets the score.String
getSentence()
Gets the sentence.String
getType()
Gets the type.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
RelationsResult
public RelationsResult()
-
-
Method Details
-
getScore
Gets the score.Confidence score for the relation. Higher values indicate greater confidence.
- Returns:
- the score
-
getSentence
Gets the sentence.The sentence that contains the relation.
- Returns:
- the sentence
-
getType
Gets the type.The type of the relation.
- Returns:
- the type
-
getArguments
Gets the arguments.Entity mentions that are involved in the relation.
- Returns:
- the arguments
-