Builtins
See Builtins for more information.
ASR data packs may include one or more builtins, which are predefined recognition objects focused on common tasks (e.g. recognizing numbers) or general information in a specific domain such as financial services or healthcare.
The list of available builtins depends on the data pack (see the documentation link above for a list of builtins available for American English).
To use a builtin in ASRaaS, specify it via the builtins
ASR parameter in config.json
:
"asr": {
"topic": "GEN",
"auto_punctuate": false,
"builtins": "CALENDARX",
...
}
You can also use more then one builtin. Pass in a list of builtin names with the same builtins
parmaeter to do so:
"asr": {
"topic": "GEN",
"auto_punctuate": false,
"builtins": [
"AMOUNT",
"DIGITS",
"DISTANCE"
],
...
}
Weights can be specified for the builtin(s) by setting the builtins_weight
parameter:
"asr": {
"topic": "GEN",
"auto_punctuate": false,
"builtins": "AMOUNT",
"builtins_weight": 0.2,
...
}
The default builtin weight if not specified is 0.25.
- To specify individual weights for each builtin, use a list of numeric weights that correspond to each builtin in order with the
builtins_weight
parameter. - If you are using multiple builtins and only one weight is given via
builtins_weight
, that weight will apply to all builtins.