NluImprovementSpecificationProperty Struct
Configures the Assisted Natural Language Understanding (NLU) feature for your bot.
This specification determines whether enhanced intent recognition and utterance understanding capabilities are active.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const nluImprovementSpecificationProperty: lex.CfnBot.NluImprovementSpecificationProperty = {
enabled: false,
// the properties below are optional
assistedNluMode: 'assistedNluMode',
intentDisambiguationSettings: {
enabled: false,
// the properties below are optional
customDisambiguationMessage: 'customDisambiguationMessage',
maxDisambiguationIntents: 123,
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lex as lex
nlu_improvement_specification_property = lex.CfnBot.NluImprovementSpecificationProperty(
enabled=False,
# the properties below are optional
assisted_nlu_mode="assistedNluMode",
intent_disambiguation_settings=lex.CfnBot.IntentDisambiguationSettingsProperty(
enabled=False,
# the properties below are optional
custom_disambiguation_message="customDisambiguationMessage",
max_disambiguation_intents=123
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;
NluImprovementSpecificationProperty nluImprovementSpecificationProperty = NluImprovementSpecificationProperty.builder()
.enabled(false)
// the properties below are optional
.assistedNluMode("assistedNluMode")
.intentDisambiguationSettings(IntentDisambiguationSettingsProperty.builder()
.enabled(false)
// the properties below are optional
.customDisambiguationMessage("customDisambiguationMessage")
.maxDisambiguationIntents(123)
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lex;
var nluImprovementSpecificationProperty = new NluImprovementSpecificationProperty {
Enabled = false,
// the properties below are optional
AssistedNluMode = "assistedNluMode",
IntentDisambiguationSettings = new IntentDisambiguationSettingsProperty {
Enabled = false,
// the properties below are optional
CustomDisambiguationMessage = "customDisambiguationMessage",
MaxDisambiguationIntents = 123
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
nluImprovementSpecificationProperty := &NluImprovementSpecificationProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
AssistedNluMode: jsii.String("assistedNluMode"),
IntentDisambiguationSettings: &IntentDisambiguationSettingsProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
CustomDisambiguationMessage: jsii.String("customDisambiguationMessage"),
MaxDisambiguationIntents: jsii.Number(123),
},
}
Properties
assistedNluModeoptionalstringassisted_nlu_modeoptionalstrassistedNluModeoptionalStringAssistedNluModeoptionalstringAssistedNluModeoptional*string #Specifies the mode for Assisted NLU operation.
Use Primary to make Assisted NLU the primary intent recognition method, or Fallback to use it only when standard NLU confidence is low.
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #Determines whether the Assisted NLU feature is enabled for the bot.
When set to true , Amazon Lex uses advanced models to improve intent recognition and slot resolution, with the default being false .
intentDisambiguationSettingsoptionalIResolvable | CfnBot.intent_disambiguation_settingsoptionaltyping.Union[IResolvable, IntentDisambiguationSettingsProperty]intentDisambiguationSettingsoptionalIResolvableIntentDisambiguationSettingsoptionalIResolvableIntentDisambiguationSettingsoptionalinterface{} #An object containing specifications for the Intent Disambiguation feature within the Assisted NLU settings.
These settings determine how the bot handles ambiguous user inputs that could match multiple intents.