public class ClassResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Float |
score |
protected java.lang.String |
typeHierarchy |
protected java.lang.String |
xClass |
Constructor and Description |
---|
ClassResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.Float |
getScore()
Gets the score.
|
java.lang.String |
getTypeHierarchy()
Gets the typeHierarchy.
|
java.lang.String |
getXClass()
Gets the xClass.
|
@SerializedName(value="class") protected java.lang.String xClass
protected java.lang.Float score
@SerializedName(value="type_hierarchy") protected java.lang.String typeHierarchy
public java.lang.String getXClass()
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.
public java.lang.Float getScore()
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.
public java.lang.String getTypeHierarchy()
Knowledge graph of the property. For example, `/fruit/pome/apple/eating apple/Granny Smith`. Included only if identified.