Created
January 10, 2019 16:07
-
-
Save JustinaPetr/4b10560d25e0239e8cc77e9950ad12c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def slot_mappings(self): | |
# type: () -> Dict[Text: Union[Dict, List[Dict]]] | |
"""A dictionary to map required slots to | |
- an extracted entity | |
- intent: value pairs | |
- a whole message or a list of them, where a first | |
match will be picked""" | |
return { "outdoor_seating": [self.from_entity(entity="seating"), | |
self.from_intent(intent='affirm', | |
value=True), | |
self.from_intent(intent='deny', | |
value=False)]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment