I have a intent.json file
{"intents": [
{"tag": "greeting",
"patterns": ["Hi there", "How are you", "Is anyone there?", "Hello", "Good day"],
"responses": ["Hello, thanks for asking", "Good to see you again", "Hi there, how can I help?"],
"context": [""]
},
{"tag": "goodbye",
"patterns": ["Bye", "See you later", "Goodbye", "Nice chatting to you, bye", "Till next time"],
"responses": ["See you!", "Have a nice day", "Bye! Come back again soon."],
"context": [""]
}
]
}
I have python file in which following function fetches the intent of the sentence and output is as follows
classify_local('Hello, good day!')
and output comes as
['greeting']
Now I want to fetch a response corresponding to tag greeting. How can I do that?
patternsfor the taggreeting,"Hello", "Good day"or"Hello, good day!"?