public class CategoriesOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese, Spanish.
Modifier and Type | Class and Description |
---|---|
static class |
CategoriesOptions.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
explanation |
protected java.lang.Long |
limit |
protected java.lang.String |
model
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
CategoriesOptions(CategoriesOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
explanation()
Gets the explanation.
|
java.lang.Long |
limit()
Gets the limit.
|
java.lang.String |
model()
Deprecated.
the model parameter is no longer supported by the Natural Language Understanding
service and will be removed in the next major release
|
CategoriesOptions.Builder |
newBuilder()
New builder.
|
protected java.lang.Boolean explanation
protected java.lang.Long limit
@Deprecated protected java.lang.String model
protected CategoriesOptions(CategoriesOptions.Builder builder)
public CategoriesOptions.Builder newBuilder()
public java.lang.Boolean explanation()
Set this to `true` to return explanations for each categorization. **This is available only for English categories.**.
public java.lang.Long limit()
Maximum number of categories to return.
public java.lang.String model()
Enter a [custom model](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-customizing) ID to override the standard categories model.
The custom categories experimental feature will be retired on 19 December 2019. On that date, deployed custom categories models will no longer be accessible in Natural Language Understanding. The feature will be removed from Knowledge Studio on an earlier date. Custom categories models will no longer be accessible in Knowledge Studio on 17 December 2019.