rasa.nlu.training_data.message
Message Objects
as_dict_nlu
Get dict representation of message as it would appear in training data
build
Build a Message from UserUttered
data.
Arguments:
text
- text of a user's utteranceintent
- an intent of the user utteranceentities
- entities in the user's utterance
Returns:
Message
build_from_action
Build a Message
from ActionExecuted
data.
Arguments:
action_text
- text of a bot's utteranceaction_name
- name of an action executed
Returns:
Message
get_full_intent
Get intent as it appears in training data
get_combined_intent_response_key
Get intent as it appears in training data
get_sparse_features
Get all sparse features for the given attribute that are coming from the given list of featurizers. If no featurizers are provided, all available features will be considered.
Arguments:
attribute
- message attributefeaturizers
- names of featurizers to consider
Returns:
Sparse features.
get_dense_features
Get all dense features for the given attribute that are coming from the given list of featurizers. If no featurizers are provided, all available features will be considered.
Arguments:
attribute
- message attributefeaturizers
- names of featurizers to consider
Returns:
Dense features.
features_present
Check if there are any features present for the given attribute and featurizers. If no featurizers are provided, all available features will be considered.
Arguments:
attribute
- message attributefeaturizers
- names of featurizers to consider
Returns:
True
, if features are present, False
otherwise