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 containing a potential answer to the specified query.
-
Constructor Summary
Constructors Constructor Description ResultPassageAnswer() -
Method Summary
Modifier and Type Method Description StringgetAnswerText()Gets the answerText.DoublegetConfidence()Gets the confidence.LonggetEndOffset()Gets the endOffset.LonggetStartOffset()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 of 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
-