Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new custom language model. Use Amazon S3 prefixes to provide the location of your input files. The time it takes to create your model depends on the size of your training data.
Synopsis
- data CreateLanguageModel = CreateLanguageModel' {}
- newCreateLanguageModel :: CLMLanguageCode -> BaseModelName -> Text -> InputDataConfig -> CreateLanguageModel
- createLanguageModel_tags :: Lens' CreateLanguageModel (Maybe (NonEmpty Tag))
- createLanguageModel_languageCode :: Lens' CreateLanguageModel CLMLanguageCode
- createLanguageModel_baseModelName :: Lens' CreateLanguageModel BaseModelName
- createLanguageModel_modelName :: Lens' CreateLanguageModel Text
- createLanguageModel_inputDataConfig :: Lens' CreateLanguageModel InputDataConfig
- data CreateLanguageModelResponse = CreateLanguageModelResponse' {}
- newCreateLanguageModelResponse :: Int -> CreateLanguageModelResponse
- createLanguageModelResponse_languageCode :: Lens' CreateLanguageModelResponse (Maybe CLMLanguageCode)
- createLanguageModelResponse_modelName :: Lens' CreateLanguageModelResponse (Maybe Text)
- createLanguageModelResponse_inputDataConfig :: Lens' CreateLanguageModelResponse (Maybe InputDataConfig)
- createLanguageModelResponse_baseModelName :: Lens' CreateLanguageModelResponse (Maybe BaseModelName)
- createLanguageModelResponse_modelStatus :: Lens' CreateLanguageModelResponse (Maybe ModelStatus)
- createLanguageModelResponse_httpStatus :: Lens' CreateLanguageModelResponse Int
Creating a Request
data CreateLanguageModel Source #
See: newCreateLanguageModel
smart constructor.
CreateLanguageModel' | |
|
Instances
newCreateLanguageModel Source #
Create a value of CreateLanguageModel
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tags:CreateLanguageModel'
, createLanguageModel_tags
- Adds one or more tags, each in the form of a key:value pair, to a new
language model at the time you create this new model.
$sel:languageCode:CreateLanguageModel'
, createLanguageModel_languageCode
- The language of the input text you're using to train your custom
language model.
$sel:baseModelName:CreateLanguageModel'
, createLanguageModel_baseModelName
- The Amazon Transcribe standard language model, or base model used to
create your custom language model.
If you want to use your custom language model to transcribe audio with a
sample rate of 16,000 Hz or greater, choose Wideband
.
If you want to use your custom language model to transcribe audio with a
sample rate that is less than 16,000 Hz, choose Narrowband
.
$sel:modelName:CreateLanguageModel'
, createLanguageModel_modelName
- The name you choose for your custom language model when you create it.
$sel:inputDataConfig:CreateLanguageModel'
, createLanguageModel_inputDataConfig
- Contains the data access role and the Amazon S3 prefixes to read the
required input files to create a custom language model.
Request Lenses
createLanguageModel_tags :: Lens' CreateLanguageModel (Maybe (NonEmpty Tag)) Source #
Adds one or more tags, each in the form of a key:value pair, to a new language model at the time you create this new model.
createLanguageModel_languageCode :: Lens' CreateLanguageModel CLMLanguageCode Source #
The language of the input text you're using to train your custom language model.
createLanguageModel_baseModelName :: Lens' CreateLanguageModel BaseModelName Source #
The Amazon Transcribe standard language model, or base model used to create your custom language model.
If you want to use your custom language model to transcribe audio with a
sample rate of 16,000 Hz or greater, choose Wideband
.
If you want to use your custom language model to transcribe audio with a
sample rate that is less than 16,000 Hz, choose Narrowband
.
createLanguageModel_modelName :: Lens' CreateLanguageModel Text Source #
The name you choose for your custom language model when you create it.
createLanguageModel_inputDataConfig :: Lens' CreateLanguageModel InputDataConfig Source #
Contains the data access role and the Amazon S3 prefixes to read the required input files to create a custom language model.
Destructuring the Response
data CreateLanguageModelResponse Source #
See: newCreateLanguageModelResponse
smart constructor.
CreateLanguageModelResponse' | |
|
Instances
newCreateLanguageModelResponse Source #
Create a value of CreateLanguageModelResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:languageCode:CreateLanguageModel'
, createLanguageModelResponse_languageCode
- The language code of the text you've used to create a custom language
model.
$sel:modelName:CreateLanguageModel'
, createLanguageModelResponse_modelName
- The name you've chosen for your custom language model.
$sel:inputDataConfig:CreateLanguageModel'
, createLanguageModelResponse_inputDataConfig
- The data access role and Amazon S3 prefixes you've chosen to create
your custom language model.
$sel:baseModelName:CreateLanguageModel'
, createLanguageModelResponse_baseModelName
- The Amazon Transcribe standard language model, or base model you've
used to create a custom language model.
$sel:modelStatus:CreateLanguageModelResponse'
, createLanguageModelResponse_modelStatus
- The status of the custom language model. When the status is COMPLETED
the model is ready to use.
$sel:httpStatus:CreateLanguageModelResponse'
, createLanguageModelResponse_httpStatus
- The response's http status code.
Response Lenses
createLanguageModelResponse_languageCode :: Lens' CreateLanguageModelResponse (Maybe CLMLanguageCode) Source #
The language code of the text you've used to create a custom language model.
createLanguageModelResponse_modelName :: Lens' CreateLanguageModelResponse (Maybe Text) Source #
The name you've chosen for your custom language model.
createLanguageModelResponse_inputDataConfig :: Lens' CreateLanguageModelResponse (Maybe InputDataConfig) Source #
The data access role and Amazon S3 prefixes you've chosen to create your custom language model.
createLanguageModelResponse_baseModelName :: Lens' CreateLanguageModelResponse (Maybe BaseModelName) Source #
The Amazon Transcribe standard language model, or base model you've used to create a custom language model.
createLanguageModelResponse_modelStatus :: Lens' CreateLanguageModelResponse (Maybe ModelStatus) Source #
The status of the custom language model. When the status is COMPLETED
the model is ready to use.
createLanguageModelResponse_httpStatus :: Lens' CreateLanguageModelResponse Int Source #
The response's http status code.