public class ConsumptionPreferences
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Constructor and Description |
---|
ConsumptionPreferences() |
Modifier and Type | Method and Description |
---|---|
String |
getConsumptionPreferenceId()
Gets the consumptionPreferenceId.
|
String |
getName()
Gets the name.
|
Double |
getScore()
Gets the score.
|
public String getConsumptionPreferenceId()
The unique, non-localized identifier of the consumption preference to which the results pertain. IDs have the form `consumption_preferences_{preference}`.
public String getName()
The user-visible, localized name of the consumption preference.
public Double getScore()
The score for the consumption preference: * `0.0`: Unlikely * `0.5`: Neutral * `1.0`: Likely
The scores for some preferences are binary and do not allow a neutral value. The score is an indication of preference based on the results inferred from the input text, not a normalized percentile.
Copyright © 2021 IBM Cloud. All rights reserved.