rasa/core/nlg/template.py
def _random_template_for(self,
                             utter_action: Text,
                             output_channel: Text
                             ) -> Optional[Dict[Text, Any]]:
        """Select random template for the utter action from available ones."""
        import numpy as np

        if utter_action in self.templates:
            return np.random.choice(self.templates[utter_action])
        else:
            return None
Select random template for the utter action from available ones.
Select random template for the utter action from available ones.
Select random template for the utter action from available ones .
def _random_template_for(self,
                             utter_action: Text,
                             output_channel: Text
                             ) -> Optional[Dict[Text, Any]]:
        import numpy as np
        if utter_action in self.templates:
            return np.random.choice(self.templates[utter_action])
        else:
            return None
def _random_template_for ( self , utter_action : Text , output_channel : Text ) -> Optional [ Dict [ Text , Any ] ] : import numpy as np if utter_action in self . templates : return np . random . choice ( self . templates [ utter_action ] ) else : return None
Select random template for the utter action from available ones.
Select random template for the utter action from available ones .
"""Select random template for the utter action from available ones."""
self
utter_action
Text
output_channel
Text