Class SearchResultAnswer
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v2.model.SearchResultAnswer
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SearchResultAnswer
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An object specifing a segment of text that was identified as a direct answer to the search query.
-
Constructor Summary
Constructors Constructor Description SearchResultAnswer()
-
Method Summary
Modifier and Type Method Description Double
getConfidence()
Gets the confidence.String
getText()
Gets the text.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
SearchResultAnswer
public SearchResultAnswer()
-
-
Method Details
-
getText
Gets the text.The text of the answer.
- Returns:
- the text
-
getConfidence
Gets the confidence.The confidence score for the answer, as returned by the Discovery service.
- Returns:
- the confidence
-