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

com.ibm.watson.visual_recognition.v3.model.ClassResult Maven / Gradle / Ivy

There is a newer version: 9.3.1
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.visual_recognition.v3.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/** Result of a class within a classifier. */
public class ClassResult extends GenericModel {

  @SerializedName("class")
  protected String xClass;

  protected Float score;

  @SerializedName("type_hierarchy")
  protected String typeHierarchy;

  /**
   * Gets the xClass.
   *
   * 

Name of the class. * *

Class names are translated in the language defined by the **Accept-Language** request header * for the build-in classifier IDs (`default`, `food`, and `explicit`). Class names of custom * classifiers are not translated. The response might not be in the specified language when the * requested language is not supported or when there is no translation for the class name. * * @return the xClass */ public String getXClass() { return xClass; } /** * Gets the score. * *

Confidence score for the property in the range of 0 to 1. A higher score indicates greater * likelihood that the class is depicted in the image. The default threshold for returning scores * from a classifier is 0.5. * * @return the score */ public Float getScore() { return score; } /** * Gets the typeHierarchy. * *

Knowledge graph of the property. For example, `/fruit/pome/apple/eating apple/Granny Smith`. * Included only if identified. * * @return the typeHierarchy */ public String getTypeHierarchy() { return typeHierarchy; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy