intent#
- class besser.bot.core.intent.intent.Intent(name, training_sentences=None, parameters=None)[source]#
Bases:
objectThe Intent core component of a bot.
Intents define a set of training sentences representing the different ways a user could express an intention (e.g. “Hi”, “Hello” for a Greetings intent).
Intents can also define parameters that are filled with information extracted from the user input using entities.
- Parameters:
name (str) – the intent’s name
training_sentences (list[str] or None) – the intent’s training sentences
parameters (list[IntentParameter] or None) – the intent’s parameters
- processed_training_sentences#
Processed training sentences are stored for intent prediction
- parameters#
The intent’s parameters
- Type: