notice

This is documentation for Rasa Documentation v2.x, which is no longer actively maintained.
For up-to-date documentation, see the latest version (3.x).

Version: 2.x

rasa.shared.nlu.interpreter

RegexInterpreter Objects

class RegexInterpreter(NaturalLanguageInterpreter)

extract_intent_and_entities

| @staticmethod
| extract_intent_and_entities(user_input: Text) -> Tuple[Optional[Text], float, List[Dict[Text, Any]]]

Parse the user input using regexes to extract intent & entities.

parse

| async parse(text: Text, message_id: Optional[Text] = None, tracker: Optional[DialogueStateTracker] = None, metadata: Optional[Dict] = None) -> Dict[Text, Any]

Parse a text message.

synchronous_parse

| synchronous_parse(text: Text) -> Dict[Text, Any]

Parse a text message.