All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.watson.discovery.v1.model.QueryResultMetadata Maven / Gradle / Ivy

There is a newer version: 13.0.0
Show newest version
/*
 * (C) Copyright IBM Corp. 2017, 2020.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */
package com.ibm.watson.discovery.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/** Metadata of a query result. */
public class QueryResultMetadata extends GenericModel {

  protected Double score;
  protected Double confidence;

  /**
   * Gets the score.
   *
   * 

An unbounded measure of the relevance of a particular result, dependent on the query and * matching document. A higher score indicates a greater match to the query parameters. * * @return the score */ public Double getScore() { return score; } /** * Gets the confidence. * *

The confidence score for the given result. Calculated based on how relevant the result is * estimated to be. confidence can range from `0.0` to `1.0`. The higher the number, the more * relevant the document. The `confidence` value for a result was calculated using the model * specified in the `document_retrieval_strategy` field of the result set. * * @return the confidence */ public Double getConfidence() { return confidence; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy