Skip to content

Commit 65a9ca8

Browse files
committed
chore(STT): remove strict documentation
1 parent d80bbe4 commit 65a9ca8

1 file changed

Lines changed: 8 additions & 17 deletions

File tree

ibm_watson/speech_to_text_v1.py

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,9 +1249,8 @@ def train_language_model(self,
12491249
* No training data have been added to the custom model.
12501250
* The custom model contains one or more invalid corpora, grammars, or words (for
12511251
example, a custom word has an invalid sounds-like pronunciation). You can correct
1252-
the invalid resources or set the `strict` parameter to `false` to exclude the
1253-
invalid resources from the training. The model must contain at least one valid
1254-
resource for training to succeed.
1252+
the invalid resources. The model must contain at least one valid resource for training
1253+
to succeed.
12551254
12561255
:param str customization_id: The customization ID (GUID) of the custom language
12571256
model that is to be used for the request. You must make the request with
@@ -2385,8 +2384,7 @@ def train_acoustic_model(self,
23852384
`custom_language_model_id` query parameter. Both custom models must be based on
23862385
the same version of the same base model.
23872386
* The custom model contains one or more invalid audio resources. You can correct
2388-
the invalid audio resources or set the `strict` parameter to `false` to exclude
2389-
the invalid resources from the training. The model must contain at least one valid
2387+
the invalid audio resources. The model must contain at least one valid
23902388
resource for training to succeed.
23912389
23922390
:param str customization_id: The customization ID (GUID) of the custom acoustic
@@ -2922,8 +2920,7 @@ class AcousticModel(object):
29222920
:attr str status: (optional) The current status of the custom acoustic model:
29232921
* `pending`: The model was created but is waiting either for valid training data to be
29242922
added or for the service to finish analyzing added data.
2925-
* `ready`: The model contains valid data and is ready to be trained. If the model
2926-
contains a mix of valid and invalid resources, you need to set the `strict` parameter
2923+
* `ready`: The model contains valid data and is ready to be trained.
29272924
to `false` for the training to proceed.
29282925
* `training`: The model is currently being trained.
29292926
* `available`: The model is trained and ready to use.
@@ -2974,8 +2971,7 @@ def __init__(self,
29742971
:param str status: (optional) The current status of the custom acoustic model:
29752972
* `pending`: The model was created but is waiting either for valid training data
29762973
to be added or for the service to finish analyzing added data.
2977-
* `ready`: The model contains valid data and is ready to be trained. If the model
2978-
contains a mix of valid and invalid resources, you need to set the `strict`
2974+
* `ready`: The model contains valid data and is ready to be trained.
29792975
parameter to `false` for the training to proceed.
29802976
* `training`: The model is currently being trained.
29812977
* `available`: The model is trained and ready to use.
@@ -4538,9 +4534,7 @@ class LanguageModel(object):
45384534
:attr str status: (optional) The current status of the custom language model:
45394535
* `pending`: The model was created but is waiting either for valid training data to be
45404536
added or for the service to finish analyzing added data.
4541-
* `ready`: The model contains valid data and is ready to be trained. If the model
4542-
contains a mix of valid and invalid resources, you need to set the `strict` parameter
4543-
to `false` for the training to proceed.
4537+
* `ready`: The model contains valid data and is ready to be trained.
45444538
* `training`: The model is currently being trained.
45454539
* `available`: The model is trained and ready to use.
45464540
* `upgrading`: The model is currently being upgraded.
@@ -4603,8 +4597,7 @@ def __init__(self,
46034597
:param str status: (optional) The current status of the custom language model:
46044598
* `pending`: The model was created but is waiting either for valid training data
46054599
to be added or for the service to finish analyzing added data.
4606-
* `ready`: The model contains valid data and is ready to be trained. If the model
4607-
contains a mix of valid and invalid resources, you need to set the `strict`
4600+
* `ready`: The model contains valid data and is ready to be trained.
46084601
parameter to `false` for the training to proceed.
46094602
* `training`: The model is currently being trained.
46104603
* `available`: The model is trained and ready to use.
@@ -6108,8 +6101,7 @@ class TrainingResponse(object):
61086101
61096102
:attr list[TrainingWarning] warnings: (optional) An array of `TrainingWarning` objects
61106103
that lists any invalid resources contained in the custom model. For custom language
6111-
models, invalid resources are grouped and identified by type of resource. The method
6112-
can return warnings only if the `strict` parameter is set to `false`.
6104+
models, invalid resources are grouped and identified by type of resource.
61136105
"""
61146106

61156107
def __init__(self, warnings=None):
@@ -6119,7 +6111,6 @@ def __init__(self, warnings=None):
61196111
:param list[TrainingWarning] warnings: (optional) An array of `TrainingWarning`
61206112
objects that lists any invalid resources contained in the custom model. For custom
61216113
language models, invalid resources are grouped and identified by type of resource.
6122-
The method can return warnings only if the `strict` parameter is set to `false`.
61236114
"""
61246115
self.warnings = warnings
61256116

0 commit comments

Comments
 (0)