Here is a design pattern for classifying complex text with multiple intents using the Natural Language Classifier:1. Define intent classes for each "aspect" you want to extract, such as color, model, type. 2. During training, assign multiple intent classes to examples that contain multiple aspects.3. At runtime, submit the text and NLC will return confidences for each intent class. 4. Analyze the confidences to extract the different aspects. For example, the top confidence for color, model, type.5. You may need to handle cases where NLC is equally confident in multiple classes for the same aspect. Ask the user to clarify or pick the most likely.6
Here are the key steps:
1. User requests password change via voice or text
2. NLC classifies the intent as "password_reset"
3. Dialog component asks authentication questions (e.g. mother's maiden name)
4. User provides answers
5. If authenticated, Dialog asks for new password and relays to backend
6. Backend updates authentication systems with new password
The NLC identifies the user's goal, and Dialog handles the multi-turn conversation and passes data to the backend to fulfill the request. This allows building voice-enabled services that can understand requests and safely handle tasks.
DSL, Page Object and WebDriver – the path to reliable functional tests.pptx
Similar to Here is a design pattern for classifying complex text with multiple intents using the Natural Language Classifier:1. Define intent classes for each "aspect" you want to extract, such as color, model, type. 2. During training, assign multiple intent classes to examples that contain multiple aspects.3. At runtime, submit the text and NLC will return confidences for each intent class. 4. Analyze the confidences to extract the different aspects. For example, the top confidence for color, model, type.5. You may need to handle cases where NLC is equally confident in multiple classes for the same aspect. Ask the user to clarify or pick the most likely.6
Similar to Here is a design pattern for classifying complex text with multiple intents using the Natural Language Classifier:1. Define intent classes for each "aspect" you want to extract, such as color, model, type. 2. During training, assign multiple intent classes to examples that contain multiple aspects.3. At runtime, submit the text and NLC will return confidences for each intent class. 4. Analyze the confidences to extract the different aspects. For example, the top confidence for color, model, type.5. You may need to handle cases where NLC is equally confident in multiple classes for the same aspect. Ask the user to clarify or pick the most likely.6 (20)
Here is a design pattern for classifying complex text with multiple intents using the Natural Language Classifier:1. Define intent classes for each "aspect" you want to extract, such as color, model, type. 2. During training, assign multiple intent classes to examples that contain multiple aspects.3. At runtime, submit the text and NLC will return confidences for each intent class. 4. Analyze the confidences to extract the different aspects. For example, the top confidence for color, model, type.5. You may need to handle cases where NLC is equally confident in multiple classes for the same aspect. Ask the user to clarify or pick the most likely.6