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 Details

    • SearchResultAnswer

      public SearchResultAnswer()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      The text of the answer.

      Returns:
      the text
    • getConfidence

      public Double getConfidence()
      Gets the confidence.

      The confidence score for the answer, as returned by the Discovery service.

      Returns:
      the confidence