Struct aws_sdk_transcribe::types::LanguageModel
source · #[non_exhaustive]pub struct LanguageModel {
pub model_name: Option<String>,
pub create_time: Option<DateTime>,
pub last_modified_time: Option<DateTime>,
pub language_code: Option<ClmLanguageCode>,
pub base_model_name: Option<BaseModelName>,
pub model_status: Option<ModelStatus>,
pub upgrade_availability: Option<bool>,
pub failure_reason: Option<String>,
pub input_data_config: Option<InputDataConfig>,
}
Expand description
Provides information about a custom language model, including:
-
The base model name
-
When the model was created
-
The location of the files used to train the model
-
When the model was last modified
-
The name you chose for the model
-
The model's language
-
The model's processing state
-
Any available upgrades for the base model
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.model_name: Option<String>
A unique name, chosen by you, for your custom language model.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account.
create_time: Option<DateTime>
The date and time the specified custom language model was created.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example, 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
last_modified_time: Option<DateTime>
The date and time the specified custom language model was last modified.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example, 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
language_code: Option<ClmLanguageCode>
The language code used to create your custom language model. Each custom language model must contain terms in only one language, and the language you select for your custom language model must match the language of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages table. Note that US English (en-US
) is the only language supported with Amazon Transcribe Medical.
base_model_name: Option<BaseModelName>
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
model_status: Option<ModelStatus>
The status of the specified custom language model. When the status displays as COMPLETED
the model is ready for use.
upgrade_availability: Option<bool>
Shows if a more current base model is available for use with the specified custom language model.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
failure_reason: Option<String>
If ModelStatus
is FAILED
, FailureReason
contains information about why the custom language model request failed. See also: Common Errors.
input_data_config: Option<InputDataConfig>
The Amazon S3 location of the input files used to train and tune your custom language model, in addition to the data access role ARN (Amazon Resource Name) that has permissions to access these data.
Implementations§
source§impl LanguageModel
impl LanguageModel
sourcepub fn model_name(&self) -> Option<&str>
pub fn model_name(&self) -> Option<&str>
A unique name, chosen by you, for your custom language model.
This name is case sensitive, cannot contain spaces, and must be unique within an Amazon Web Services account.
sourcepub fn create_time(&self) -> Option<&DateTime>
pub fn create_time(&self) -> Option<&DateTime>
The date and time the specified custom language model was created.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example, 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
sourcepub fn last_modified_time(&self) -> Option<&DateTime>
pub fn last_modified_time(&self) -> Option<&DateTime>
The date and time the specified custom language model was last modified.
Timestamps are in the format YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC
. For example, 2022-05-04T12:32:58.761000-07:00
represents 12:32 PM UTC-7 on May 4, 2022.
sourcepub fn language_code(&self) -> Option<&ClmLanguageCode>
pub fn language_code(&self) -> Option<&ClmLanguageCode>
The language code used to create your custom language model. Each custom language model must contain terms in only one language, and the language you select for your custom language model must match the language of your training and tuning data.
For a list of supported languages and their associated language codes, refer to the Supported languages table. Note that US English (en-US
) is the only language supported with Amazon Transcribe Medical.
sourcepub fn base_model_name(&self) -> Option<&BaseModelName>
pub fn base_model_name(&self) -> Option<&BaseModelName>
The Amazon Transcribe standard language model, or base model, used to create your custom language model.
sourcepub fn model_status(&self) -> Option<&ModelStatus>
pub fn model_status(&self) -> Option<&ModelStatus>
The status of the specified custom language model. When the status displays as COMPLETED
the model is ready for use.
sourcepub fn upgrade_availability(&self) -> Option<bool>
pub fn upgrade_availability(&self) -> Option<bool>
Shows if a more current base model is available for use with the specified custom language model.
If false
, your custom language model is using the most up-to-date base model.
If true
, there is a newer base model available than the one your language model is using.
Note that to update a base model, you must recreate the custom language model using the new base model. Base model upgrades for existing custom language models are not supported.
sourcepub fn failure_reason(&self) -> Option<&str>
pub fn failure_reason(&self) -> Option<&str>
If ModelStatus
is FAILED
, FailureReason
contains information about why the custom language model request failed. See also: Common Errors.
sourcepub fn input_data_config(&self) -> Option<&InputDataConfig>
pub fn input_data_config(&self) -> Option<&InputDataConfig>
The Amazon S3 location of the input files used to train and tune your custom language model, in addition to the data access role ARN (Amazon Resource Name) that has permissions to access these data.
source§impl LanguageModel
impl LanguageModel
sourcepub fn builder() -> LanguageModelBuilder
pub fn builder() -> LanguageModelBuilder
Creates a new builder-style object to manufacture LanguageModel
.
Trait Implementations§
source§impl Clone for LanguageModel
impl Clone for LanguageModel
source§fn clone(&self) -> LanguageModel
fn clone(&self) -> LanguageModel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LanguageModel
impl Debug for LanguageModel
source§impl PartialEq for LanguageModel
impl PartialEq for LanguageModel
source§fn eq(&self, other: &LanguageModel) -> bool
fn eq(&self, other: &LanguageModel) -> bool
self
and other
values to be equal, and is used
by ==
.