public class Interpretation
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Double |
numericValue |
protected java.lang.String |
unit |
protected java.lang.String |
value |
Constructor and Description |
---|
Interpretation() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getNumericValue()
Gets the numericValue.
|
java.lang.String |
getUnit()
Gets the unit.
|
java.lang.String |
getValue()
Gets the value.
|
protected java.lang.String value
@SerializedName(value="numeric_value") protected java.lang.Double numericValue
protected java.lang.String unit
public java.lang.String getValue()
The value that was located in the normalized text.
public java.lang.Double getNumericValue()
An integer or float expressing the numeric value of the `value` key.
public java.lang.String getUnit()
A string listing the unit of the value that was found in the normalized text.
**Note:** The value of `unit` is the [ISO-4217 currency code](https://www.iso.org/iso-4217-currency-codes.html) identified for the currency amount (for example, `USD` or `EUR`). If the service cannot disambiguate a currency symbol (for example, `$` or `£`), the value of `unit` contains the ambiguous symbol as-is.