Class ResultPassageAnswer
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.ResultPassageAnswer
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class ResultPassageAnswer
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Object that contains a potential answer to the specified query.
-
Constructor Summary
Constructors Constructor Description ResultPassageAnswer()
-
Method Summary
Modifier and Type Method Description String
getAnswerText()
Gets the answerText.Double
getConfidence()
Gets the confidence.Long
getEndOffset()
Gets the endOffset.Long
getStartOffset()
Gets the startOffset.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
ResultPassageAnswer
public ResultPassageAnswer()
-
-
Method Details
-
getAnswerText
Gets the answerText.Answer text for the specified query as identified by Discovery.
- Returns:
- the answerText
-
getStartOffset
Gets the startOffset.The position of the first character of the extracted answer in the originating field.
- Returns:
- the startOffset
-
getEndOffset
Gets the endOffset.The position after the last character of the extracted answer in the originating field.
- Returns:
- the endOffset
-
getConfidence
Gets the confidence.An estimate of the probability that the answer is relevant.
- Returns:
- the confidence
-