public class LanguageModel
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
LanguageModel.Status
The current status of the custom language model: * `pending`: The model was created but is
waiting either for valid training data to be added or for the service to finish analyzing added
data.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
baseModelName |
protected java.lang.String |
created |
protected java.lang.String |
customizationId |
protected java.lang.String |
description |
protected java.lang.String |
dialect |
protected java.lang.String |
error |
protected java.lang.String |
language |
protected java.lang.String |
name |
protected java.lang.String |
owner |
protected java.lang.Long |
progress |
protected java.lang.String |
status |
protected java.lang.String |
updated |
protected java.util.List<java.lang.String> |
versions |
protected java.lang.String |
warnings |
Constructor and Description |
---|
LanguageModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseModelName()
Gets the baseModelName.
|
java.lang.String |
getCreated()
Gets the created.
|
java.lang.String |
getCustomizationId()
Gets the customizationId.
|
java.lang.String |
getDescription()
Gets the description.
|
java.lang.String |
getDialect()
Gets the dialect.
|
java.lang.String |
getError()
Gets the error.
|
java.lang.String |
getLanguage()
Gets the language.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.String |
getOwner()
Gets the owner.
|
java.lang.Long |
getProgress()
Gets the progress.
|
java.lang.String |
getStatus()
Gets the status.
|
java.lang.String |
getUpdated()
Gets the updated.
|
java.util.List<java.lang.String> |
getVersions()
Gets the versions.
|
java.lang.String |
getWarnings()
Gets the warnings.
|
@SerializedName(value="customization_id") protected java.lang.String customizationId
protected java.lang.String created
protected java.lang.String updated
protected java.lang.String language
protected java.lang.String dialect
protected java.util.List<java.lang.String> versions
protected java.lang.String owner
protected java.lang.String name
protected java.lang.String description
@SerializedName(value="base_model_name") protected java.lang.String baseModelName
protected java.lang.String status
protected java.lang.Long progress
protected java.lang.String error
protected java.lang.String warnings
public java.lang.String getCustomizationId()
The customization ID (GUID) of the custom language model. The **Create a custom language model** method returns only this field of the object; it does not return the other fields.
public java.lang.String getCreated()
The date and time in Coordinated Universal Time (UTC) at which the custom language model was created. The value is provided in full ISO 8601 format (`YYYY-MM-DDThh:mm:ss.sTZD`).
public java.lang.String getUpdated()
The date and time in Coordinated Universal Time (UTC) at which the custom language model was last modified. The `created` and `updated` fields are equal when a language model is first added but has yet to be updated. The value is provided in full ISO 8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
public java.lang.String getLanguage()
The language identifier of the custom language model (for example, `en-US`).
public java.lang.String getDialect()
The dialect of the language for the custom language model. For non-Spanish models, the field matches the language of the base model; for example, `en-US` for either of the US English language models. For Spanish models, the field indicates the dialect for which the model was created: * `es-ES` for Castilian Spanish (`es-ES` models) * `es-LA` for Latin American Spanish (`es-AR`, `es-CL`, `es-CO`, and `es-PE` models) * `es-US` for Mexican (North American) Spanish (`es-MX` models)
Dialect values are case-insensitive.
public java.util.List<java.lang.String> getVersions()
A list of the available versions of the custom language model. Each element of the array indicates a version of the base model with which the custom model can be used. Multiple versions exist only if the custom model has been upgraded; otherwise, only a single version is shown.
public java.lang.String getOwner()
The GUID of the credentials for the instance of the service that owns the custom language model.
public java.lang.String getName()
The name of the custom language model.
public java.lang.String getDescription()
The description of the custom language model.
public java.lang.String getBaseModelName()
The name of the language model for which the custom language model was created.
public java.lang.String getStatus()
The current status of the custom language model: * `pending`: The model was created but is waiting either for valid training data to be added or for the service to finish analyzing added data. * `ready`: The model contains valid data and is ready to be trained. If the model contains a mix of valid and invalid resources, you need to set the `strict` parameter to `false` for the training to proceed. * `training`: The model is currently being trained. * `available`: The model is trained and ready to use. * `upgrading`: The model is currently being upgraded. * `failed`: Training of the model failed.
public java.lang.Long getProgress()
A percentage that indicates the progress of the custom language model's current training. A value of `100` means that the model is fully trained. **Note:** The `progress` field does not currently reflect the progress of the training. The field changes from `0` to `100` when training is complete.
public java.lang.String getError()
If an error occurred while adding a grammar file to the custom language model, a message that describes an `Internal Server Error` and includes the string `Cannot compile grammar`. The status of the custom model is not affected by the error, but the grammar cannot be used with the model.
public java.lang.String getWarnings()
If the request included unknown parameters, the following message: `Unexpected query parameter(s) ['parameters'] detected`, where `parameters` is a list that includes a quoted string for each unknown parameter.