write once, use everywhere
from intent_assistant import IntentAssistant
ia = IntentAssistant()
ia.load_folder("/home/user/PycharmProjects/intent_assistant/test/intents")
print("\nADAPT:")
print(ia.adapt_intents)
print("\nPADATIOUS:")
print(ia.padatious_intents)
print("\nFUZZY MATCH:")
print(ia.fuzzy_intents)
{'optional_test': [{'entities': [{'name': 'required_kw',
'required': True,
'samples': ['what is weather like',
'how is weather like',
'tell me weather']},
{'name': 'optional_kw',
'required': False,
'samples': ['in canada',
'in france',
'in portugal']},
{'name': 'location',
'regex': True,
'required': False,
'samples': ['^\\W*how\\W+is\\W+weather\\W+like\\W+in\\W+(?P<location>.*?\\w.*?)\\W*$',
'^\\W*tell\\W+me\\W+weather\\W+at\\W+(?P<location>.*?\\w.*?)\\W*$',
'^\\W*tell\\W+me\\W+weather\\W+in\\W+(?P<location>.*?\\w.*?)\\W*$']}],
'intent': {'at_least_one': [],
'name': 'optional_test',
'optional': [('optional_kw', 'optional_kw'),
('location', 'location')],
'requires': [('required_kw', 'required_kw')]}}],
'parantheses_test': [{'entities': [{'name': 'required_kw',
'required': True,
'samples': ['i like mycroft',
'i love mycroft',
'mycroft is open',
'mycroft is free',
'mycroft is private']}],
'intent': {'at_least_one': [],
'name': 'parantheses_test',
'optional': [],
'requires': [('required_kw',
'required_kw')]}}],
'regex_test': [{'entities': [{'name': 'something',
'regex': True,
'required': True,
'samples': ['^\\W*say\\W+(?P<something>.*?\\w.*?)\\W*$',
'^\\W*repeat\\W+(?P<something>.*?\\w.*?)\\W*$',
'^\\W*repeat\\W+(?P<something>.*?\\w.*?)\\W+to\\W+me\\W*$',
'^\\W*say\\W+(?P<something>.*?\\w.*?)\\W+to\\W+me\\W*$']},
{'name': 'regex_helper_kw_0',
'regex': True,
'required': False,
'samples': ['repeat']},
{'name': 'regex_helper_kw_1',
'regex': True,
'required': False,
'samples': ['say']},
{'name': 'regex_helper_kw_2',
'regex': True,
'required': False,
'samples': ['to me']}],
'intent': {'at_least_one': [],
'name': 'regex_test',
'optional': [('regex_helper_kw_0',
'regex_helper_kw_0'),
('regex_helper_kw_1',
'regex_helper_kw_1'),
('regex_helper_kw_2',
'regex_helper_kw_2')],
'requires': [('something', 'something')]}}],
'test': [{'entities': [{'name': 'required_kw',
'required': True,
'samples': ['test sentence',
'another test sentence',
'very simple test sentence',
'this is same test',
'yet another test']}],
'intent': {'at_least_one': [],
'name': 'test',
'optional': [],
'requires': [('required_kw', 'required_kw')]}}]}
{'optional_test': [{'entities': [{'location': ['france',
'portugal',
'canada',
'england',
'italy',
'china']}],
'samples': ['what is weather like in canada',
'what is weather like in france',
'what is weather like in portugal',
'what is weather like',
'how is weather like in { location }',
'how is weather like',
'tell me weather at { location }',
'tell me weather in { location }',
'tell me weather']}],
'parantheses_test': [{'entities': [],
'samples': ['i like mycroft',
'i love mycroft',
'mycroft is open',
'mycroft is free',
'mycroft is private']}],
'regex_test': [{'entities': [],
'samples': ['say { something }',
'repeat { something }',
'repeat { something } to me',
'say { something } to me']}],
'test': [{'entities': [],
'samples': ['test sentence',
'another test sentence',
'very simple test sentence',
'this is same test',
'yet another test']}]}
{'optional_test': [{'entities': {'location': ['france',
'portugal',
'canada',
'england',
'italy',
'china']},
'samples': ['tell me weather at *',
'tell me weather in italy',
'how is weather like',
'tell me weather at italy',
'tell me weather at canada',
'tell me weather at england',
'how is weather like in canada',
'tell me weather in england',
'tell me weather in france',
'what is weather like in canada',
'how is weather like in england',
'tell me weather in canada',
'what is weather like in portugal',
'what is weather like in france',
'how is weather like in portugal',
'how is weather like in china',
'tell me weather at portugal',
'what is weather like',
'tell me weather in china',
'tell me weather',
'tell me weather at france',
'tell me weather at china',
'tell me weather in *',
'tell me weather in portugal',
'how is weather like in *',
'how is weather like in france',
'how is weather like in italy']}],
'parantheses_test': [{'entities': {},
'samples': ['mycroft is open',
'mycroft is private',
'i like mycroft',
'mycroft is free',
'i love mycroft']}],
'regex_test': [{'entities': {},
'samples': ['say * to me',
'repeat * to me',
'say *',
'repeat *']}],
'test': [{'entities': {},
'samples': ['test sentence',
'very simple test sentence',
'yet another test',
'another test sentence',
'this is same test']}]}
from intent_assistant import IntentAssistant
i = IntentAssistant()
i.load_folder("/home/user/PycharmProjects/intent_assistant/test/weather")
sentences = ["what is the weather",
"weather tomorrow",
"say the weather in london",
"how is the weather in dubai",
"when will the world end"]
for s in sentences:
print(s)
print(i.fuzzy_best(s, min_conf=0.65))what is the weather
{'best_match': 'what is weather',
'conf': 0.8823529411764706,
'intent_name': 'weather_now'}
weather tomorrow
{'best_match': 'how is weather tomorrow',
'conf': 0.8205128205128205,
'intent_name': 'weather_tomorrow'}
say the weather in london
{'best_match': 'tell me weather in london',
'conf': 0.8,
'intent_name': 'weather_location'}
how is the weather in dubai
{'best_match': 'how is weather in berlin',
'conf': 0.7843137254901961,
'intent_name': 'weather_location'}
when will the world end
{'best_match': None, 'conf': 0, 'intent_name': None}
collecting utterances for automated test building
from intent_assistant import IntentAssistant
i = IntentAssistant()
i.load_folder("/home/user/PycharmProjects/intent_assistant/test/weather")
print(i.test_utterances){'weather_location': {'auto_generated': [],
'must_match': ['how is weather like at london',
'tell me weather at london',
'what is weather at lisbon',
'how is weather like in london',
'tell me weather forecast in lisbon',
'what is weather like in new york',
'tell me weather on berlin',
'tell me weather on new york',
'how is weather like on london',
'tell me weather in geneva',
'what is weather like on berlin',
'tell me weather forecast in tokyo',
'tell me weather in tokyo',
'what is weather on berlin',
'tell me weather forecast at berlin',
'tell me weather at berlin',
'what is weather like at new york',
'tell me weather forecast at lisbon',
'what is weather at new york',
'how is weather like on new york',
'how is weather like on berlin',
'what is weather in lisbon',
'what is weather like in lisbon',
'tell me weather in lisbon',
'how is weather at berlin',
'tell me weather forecast at tokyo',
'what is weather on geneva',
'how is weather in lisbon',
'what is weather like in london',
'tell me weather on london',
'what is weather like in berlin',
'how is weather like in tokyo',
'tell me weather on tokyo',
'how is weather like at berlin',
'what is weather on new york',
'tell me weather at tokyo',
'what is weather like on new york',
'what is weather like at tokyo',
'how is weather in tokyo',
'how is weather at new york',
'how is weather at tokyo',
'tell me weather forecast on lisbon',
'how is weather on new york',
'how is weather in geneva',
'what is weather in tokyo',
'how is weather like in berlin',
'how is weather in london',
'what is weather like on tokyo',
'what is weather at tokyo',
'tell me weather forecast on tokyo',
'what is weather like on geneva',
'what is weather like at berlin',
'how is weather in berlin',
'how is weather on lisbon',
'how is weather in new york',
'what is weather like at london',
'what is weather like in tokyo',
'what is weather in new york',
'how is weather like at lisbon',
'tell me weather on lisbon',
'tell me weather forecast on geneva',
'how is weather like in new york',
'what is weather like in geneva',
'tell me weather in berlin',
'how is weather at lisbon',
'how is weather like in geneva',
'tell me weather forecast in geneva',
'what is weather like at lisbon',
'tell me weather on geneva',
'what is weather like on london',
'what is weather in geneva',
'what is weather on london',
'what is weather at geneva',
'tell me weather at new york',
'how is weather like in lisbon',
'how is weather like at tokyo',
'what is weather at berlin',
'tell me weather forecast in berlin',
'how is weather like on lisbon',
'how is weather at geneva',
'how is weather like on geneva',
'tell me weather at geneva',
'what is weather on tokyo',
'tell me weather forecast at london',
'what is weather in berlin',
'how is weather on tokyo',
'tell me weather in london',
'what is weather in london',
'what is weather on lisbon',
'tell me weather forecast on london',
'how is weather on london',
'how is weather on berlin',
'what is weather like on lisbon',
'tell me weather forecast at geneva',
'how is weather like on tokyo',
'how is weather at london',
'how is weather on geneva',
'tell me weather forecast on new york',
'how is weather like at new york',
'how is weather like at geneva',
'tell me weather forecast in new york',
'tell me weather forecast in london',
'tell me weather forecast on berlin',
'tell me weather forecast at new york',
'tell me weather at lisbon',
'tell me weather in new york',
'what is weather at london',
'what is weather like at geneva'],
'wildcards': ['what is weather on *',
'tell me weather forecast at *',
'tell me weather at *',
'how is weather at *',
'how is weather on *',
'tell me weather in *',
'how is weather in *',
'what is weather at *',
'how is weather like in *',
'how is weather like on *',
'what is weather like in *',
'what is weather like on *',
'what is weather like at *',
'how is weather like at *',
'what is weather in *',
'tell me weather forecast on *',
'tell me weather forecast in *',
'tell me weather on *']},
'weather_location_tomorrow': {'auto_generated': [],
'must_match': ['what is weather like on berlin tomorrow',
'what is weather on lisbon tomorrow',
'what is weather like next day at tokyo',
'how is weather like tomorrow on berlin',
'tell me next day weather forecast in berlin',
'what is weather tomorrow at geneva',
'how is weather tomorrow on lisbon',
'what is weather next day on geneva',
'what is weather like next day on berlin',
'what is weather like tomorrow at berlin',
'how is weather like at lisbon next day',
'what is weather like at geneva next day',
'how is weather tomorrow on berlin',
'what is weather like at london next day',
'how is weather tomorrow in geneva',
'tell me tomorrow weather forecast in london',
'what is weather next day in lisbon',
'what is weather on geneva next day',
'how is weather like next day on lisbon',
'how is weather like next day at berlin',
'tell me next day weather forecast at tokyo',
'what is weather on tokyo tomorrow',
'what is weather next day in london',
'how is weather in tokyo tomorrow',
'how is weather like in new york tomorrow',
'how is weather on london next day',
'tell me next day weather forecast at london',
'what is weather like tomorrow at london',
'how is weather in tokyo next day',
'tell me tomorrow weather on tokyo',
'what is weather tomorrow in geneva',
'how is weather tomorrow in tokyo',
'how is weather like in geneva tomorrow',
'what is weather at berlin tomorrow',
'tell me next day weather on lisbon',
'how is weather in lisbon next day',
'what is weather like at berlin next day',
'what is weather next day on lisbon',
'what is weather like tomorrow in berlin',
'what is weather next day at new york',
'how is weather like next day at lisbon',
'what is weather in new york next day',
'what is weather like on london tomorrow',
'tell me next day weather forecast in new york',
'what is weather like next day in lisbon',
'how is weather next day at london',
'what is weather next day on berlin',
'what is weather like tomorrow on lisbon',
'how is weather tomorrow in new york',
'how is weather like tomorrow at geneva',
'what is weather like at tokyo next day',
'what is weather tomorrow in new york',
'how is weather like next day in lisbon',
'tell me tomorrow weather in geneva',
'what is weather on london next day',
'what is weather tomorrow on new york',
'tell me next day weather forecast on new york',
'how is weather on lisbon tomorrow',
'what is weather on berlin tomorrow',
'tell me next day weather in tokyo',
'how is weather at tokyo tomorrow',
'how is weather tomorrow in berlin',
'tell me tomorrow weather on london',
'what is weather next day on london',
'what is weather tomorrow in london',
'what is weather like next day on lisbon',
'tell me tomorrow weather forecast in berlin',
'how is weather tomorrow at tokyo',
'how is weather like at tokyo next day',
'what is weather at geneva next day',
'how is weather in london next day',
'what is weather like on new york tomorrow',
'what is weather in geneva tomorrow',
'how is weather on berlin tomorrow',
'what is weather tomorrow at london',
'how is weather like next day at new york',
'how is weather like at geneva next day',
'how is weather like next day at geneva',
'tell me tomorrow weather forecast in geneva',
'how is weather at london tomorrow',
'how is weather like tomorrow at tokyo',
'how is weather next day on lisbon',
'tell me tomorrow weather on new york',
'how is weather like next day in berlin',
'what is weather at lisbon tomorrow',
'how is weather like on berlin tomorrow',
'tell me next day weather on geneva',
'how is weather like next day in geneva',
'what is weather like tomorrow at geneva',
'how is weather tomorrow on tokyo',
'how is weather at lisbon next day',
'what is weather like in berlin next day',
'how is weather in london tomorrow',
'tell me tomorrow weather at geneva',
'tell me next day weather at london',
'how is weather tomorrow on geneva',
'how is weather at berlin next day',
'how is weather like tomorrow in lisbon',
'what is weather like in london tomorrow',
'how is weather next day on new york',
'how is weather like tomorrow in london',
'how is weather like next day at tokyo',
'how is weather next day in london',
'what is weather next day at tokyo',
'what is weather like on new york next day',
'how is weather like at lisbon tomorrow',
'what is weather in tokyo tomorrow',
'how is weather next day at berlin',
'tell me tomorrow weather in lisbon',
'how is weather like tomorrow on london',
'tell me next day weather forecast in london',
'how is weather next day in geneva',
'how is weather in new york tomorrow',
'tell me next day weather forecast on tokyo',
'what is weather tomorrow on london',
'tell me tomorrow weather forecast on tokyo',
'what is weather like next day on tokyo',
'how is weather in geneva next day',
'what is weather like on lisbon next day',
'what is weather at geneva tomorrow',
'how is weather like on london next day',
'tell me next day weather at new york',
'how is weather like tomorrow in berlin',
'how is weather like at berlin next day',
'how is weather tomorrow at lisbon',
'tell me next day weather in london',
'what is weather next day in geneva',
'how is weather like on lisbon tomorrow',
'how is weather like next day in new york',
'what is weather like next day at new york',
'what is weather like on berlin next day',
'how is weather tomorrow on new york',
'tell me tomorrow weather forecast at geneva',
'how is weather like tomorrow on tokyo',
'how is weather tomorrow at london',
'what is weather like tomorrow at tokyo',
'tell me next day weather forecast in tokyo',
'tell me tomorrow weather forecast on geneva',
'what is weather at new york next day',
'what is weather like at berlin tomorrow',
'how is weather like at new york tomorrow',
'tell me next day weather forecast in lisbon',
'what is weather like on tokyo tomorrow',
'how is weather tomorrow in london',
'how is weather like at london next day',
'how is weather on new york tomorrow',
'how is weather next day on tokyo',
'tell me next day weather forecast at lisbon',
'how is weather tomorrow on london',
'what is weather on new york next day',
'how is weather like in geneva next day',
'what is weather tomorrow on berlin',
'how is weather like on new york tomorrow',
'tell me tomorrow weather forecast at lisbon',
'tell me tomorrow weather at berlin',
'tell me next day weather forecast on berlin',
'what is weather tomorrow in tokyo',
'tell me next day weather at lisbon',
'how is weather like in berlin tomorrow',
'what is weather like next day in berlin',
'tell me next day weather in geneva',
'what is weather like at new york tomorrow',
'what is weather at tokyo next day',
'what is weather on lisbon next day',
'what is weather like tomorrow at new york',
'tell me tomorrow weather in tokyo',
'tell me tomorrow weather in berlin',
'what is weather like tomorrow at lisbon',
'tell me tomorrow weather at new york',
'what is weather like at geneva tomorrow',
'what is weather like next day in geneva',
'what is weather at new york tomorrow',
'what is weather like at tokyo tomorrow',
'how is weather in berlin tomorrow',
'how is weather at london next day',
'what is weather at london tomorrow',
'what is weather in london tomorrow',
'tell me tomorrow weather in london',
'what is weather tomorrow in berlin',
'what is weather in new york tomorrow',
'how is weather at lisbon tomorrow',
'tell me next day weather at berlin',
'what is weather like in berlin tomorrow',
'tell me tomorrow weather forecast in tokyo',
'how is weather like on london tomorrow',
'tell me next day weather forecast on london',
'how is weather like next day at london',
'tell me tomorrow weather at london',
'what is weather like tomorrow in geneva',
'how is weather like next day on berlin',
'tell me tomorrow weather forecast at new york',
'what is weather like in tokyo next day',
'what is weather in lisbon next day',
'what is weather tomorrow at new york',
'how is weather next day on geneva',
'how is weather next day on berlin',
'what is weather like tomorrow in london',
'how is weather next day on london',
'what is weather like in tokyo tomorrow',
'tell me tomorrow weather forecast in new york',
'how is weather like tomorrow at new york',
'what is weather at berlin next day',
'how is weather like next day on tokyo',
'how is weather like tomorrow in new york',
'how is weather on new york next day',
'tell me tomorrow weather forecast on new york',
'how is weather in berlin next day',
'how is weather like at tokyo tomorrow',
'how is weather like tomorrow at berlin',
'how is weather like in london next day',
'what is weather at london next day',
'what is weather like at london tomorrow',
'how is weather at geneva tomorrow',
'how is weather like on tokyo next day',
'what is weather in geneva next day',
'how is weather on london tomorrow',
'what is weather like at new york next day',
'how is weather next day in berlin',
'what is weather at tokyo tomorrow',
'how is weather tomorrow at geneva',
'how is weather like tomorrow at london',
'what is weather at lisbon next day',
'what is weather tomorrow in lisbon',
'how is weather like on lisbon next day',
'tell me tomorrow weather forecast at tokyo',
'what is weather like next day at lisbon',
'what is weather next day in new york',
'what is weather like in new york next day',
'tell me next day weather on tokyo',
'tell me tomorrow weather on geneva',
'how is weather like in london tomorrow',
'tell me tomorrow weather forecast on lisbon',
'what is weather like on london next day',
'what is weather like in london next day',
'what is weather in lisbon tomorrow',
'what is weather next day at lisbon',
'tell me next day weather on london',
'tell me tomorrow weather forecast on london',
'how is weather tomorrow in lisbon',
'what is weather like next day at berlin',
'how is weather in geneva tomorrow',
'what is weather in tokyo next day',
'how is weather at berlin tomorrow',
'how is weather like in tokyo next day',
'what is weather on berlin next day',
'what is weather like tomorrow in new york',
'what is weather like on lisbon tomorrow',
'how is weather like on geneva next day',
'how is weather next day at tokyo',
'how is weather like next day in london',
'what is weather next day at geneva',
'tell me tomorrow weather at lisbon',
'how is weather like at new york next day',
'how is weather like in berlin next day',
'what is weather like next day on new york',
'tell me next day weather on berlin',
'how is weather next day at new york',
'how is weather like tomorrow on new york',
'what is weather on tokyo next day',
'how is weather on berlin next day',
'what is weather like at lisbon tomorrow',
'how is weather next day in lisbon',
'how is weather next day at geneva',
'tell me tomorrow weather in new york',
'what is weather like in geneva tomorrow',
'what is weather like next day at london',
'how is weather tomorrow at new york',
'how is weather at geneva next day',
'what is weather like next day at geneva',
'what is weather in berlin next day',
'how is weather like next day in tokyo',
'tell me tomorrow weather forecast at london',
'tell me next day weather in berlin',
'tell me next day weather forecast at geneva',
'how is weather in new york next day',
'how is weather like at geneva tomorrow',
'how is weather like tomorrow on geneva',
'what is weather tomorrow at lisbon',
'how is weather like on berlin next day',
'what is weather like next day in london',
'how is weather on geneva next day',
'how is weather next day at lisbon',
'how is weather like tomorrow at lisbon',
'what is weather tomorrow at berlin',
'how is weather like on new york next day',
'what is weather next day in tokyo',
'what is weather like next day on geneva',
'tell me next day weather forecast on lisbon',
'how is weather like next day on geneva',
'how is weather like next day on new york',
'what is weather like tomorrow in lisbon',
'what is weather like in lisbon next day',
'how is weather on tokyo next day',
'what is weather like in lisbon tomorrow',
'how is weather like next day on london',
'what is weather like tomorrow on new york',
'how is weather tomorrow at berlin',
'what is weather like at lisbon next day',
'what is weather on london tomorrow',
'tell me tomorrow weather forecast at berlin',
'tell me next day weather on new york',
'what is weather like in geneva next day',
'what is weather like next day on london',
'how is weather on tokyo tomorrow',
'tell me next day weather forecast on geneva',
'what is weather next day at berlin',
'how is weather at tokyo next day',
'tell me tomorrow weather on lisbon',
'how is weather like in lisbon next day',
'what is weather like on tokyo next day',
'how is weather like on geneva tomorrow',
'tell me next day weather at geneva',
'what is weather like on geneva tomorrow',
'what is weather like tomorrow in tokyo',
'what is weather next day at london',
'how is weather like in tokyo tomorrow',
'tell me tomorrow weather on berlin',
'what is weather like next day in new york',
'how is weather like tomorrow in tokyo',
'tell me next day weather at tokyo',
'tell me next day weather forecast in geneva',
'how is weather next day in tokyo',
'how is weather on lisbon next day',
'what is weather on geneva tomorrow',
'what is weather tomorrow on tokyo',
'what is weather like tomorrow on geneva',
'what is weather next day on tokyo',
'how is weather like at berlin tomorrow',
'how is weather like in lisbon tomorrow',
'what is weather next day in berlin',
'what is weather tomorrow at tokyo',
'tell me tomorrow weather forecast in lisbon',
'what is weather like next day in tokyo',
'how is weather at new york tomorrow',
'how is weather like on tokyo tomorrow',
'how is weather on geneva tomorrow',
'how is weather next day in new york',
'tell me next day weather in new york',
'how is weather at new york next day',
'what is weather in london next day',
'what is weather tomorrow on geneva',
'tell me next day weather in lisbon',
'tell me tomorrow weather forecast on berlin',
'how is weather like in new york next day',
'tell me next day weather forecast at berlin',
'what is weather like in new york tomorrow',
'how is weather in lisbon tomorrow',
'how is weather like at london tomorrow',
'how is weather like tomorrow in geneva',
'what is weather like on geneva next day',
'how is weather like tomorrow on lisbon',
'what is weather tomorrow on lisbon',
'what is weather like tomorrow on london',
'what is weather like tomorrow on berlin',
'tell me next day weather forecast at new york',
'what is weather on new york tomorrow',
'what is weather like tomorrow on tokyo',
'tell me tomorrow weather at tokyo',
'what is weather next day on new york',
'what is weather in berlin tomorrow'],
'wildcards': ['tell me tomorrow weather at *',
'what is weather next day in *',
'what is weather like tomorrow at *',
'tell me next day weather forecast on *',
'what is weather like in * tomorrow',
'how is weather tomorrow at *',
'what is weather like at * tomorrow',
'what is weather next day on *',
'how is weather like next day on *',
'what is weather in * tomorrow',
'what is weather like on * tomorrow',
'how is weather tomorrow on *',
'what is weather like at * next day',
'what is weather on * next day',
'what is weather like tomorrow in *',
'how is weather like tomorrow in *',
'how is weather like in * tomorrow',
'tell me next day weather forecast at *',
'how is weather next day in *',
'what is weather in * next day',
'how is weather like on * next day',
'what is weather on * tomorrow',
'how is weather in * tomorrow',
'tell me next day weather forecast in *',
'how is weather on * tomorrow',
'tell me next day weather at *',
'tell me tomorrow weather forecast on *',
'tell me tomorrow weather forecast in *',
'what is weather like on * next day',
'how is weather in * next day',
'tell me tomorrow weather in *',
'how is weather tomorrow in *',
'how is weather next day on *',
'tell me tomorrow weather forecast at *',
'how is weather at * tomorrow',
'what is weather tomorrow in *',
'how is weather like in * next day',
'what is weather next day at *',
'how is weather next day at *',
'what is weather at * next day',
'what is weather like next day on *',
'what is weather tomorrow on *',
'how is weather at * next day',
'what is weather at * tomorrow',
'how is weather like tomorrow at *',
'how is weather like at * next day',
'what is weather like next day at *',
'tell me tomorrow weather on *',
'tell me next day weather in *',
'how is weather like next day in *',
'how is weather like at * tomorrow',
'how is weather on * next day',
'what is weather like in * next day',
'what is weather like tomorrow on *',
'tell me next day weather on *',
'how is weather like on * tomorrow',
'how is weather like tomorrow on *',
'what is weather tomorrow at *',
'how is weather like next day at *',
'what is weather like next day in *']},
'weather_now': {'auto_generated': [],
'must_match': ['how is weather like',
'how is weather',
'tell me weather',
'tell me weather forecast',
'what is weather like',
'what is weather'],
'wildcards': []},
'weather_tomorrow': {'auto_generated': [],
'must_match': ['what is weather like next day',
'how is weather next day',
'how is weather tomorrow',
'how is weather like tomorrow',
'tell me tomorrow weather forecast',
'what is weather tomorrow',
'tell me next day weather forecast',
'tell me tomorrow weather',
'what is weather next day',
'tell me next day weather',
'what is weather like tomorrow',
'how is weather like next day'],
'wildcards': []}}
to help in creating even more test utterances
from intent_assistant import IntentAssistant
i = IntentAssistant()
i.load_folder("/home/user/PycharmProjects/intent_assistant/test/weather")
print(i.generated_wildcards){'weather_location': ['how is weather like at *',
'how is weather in *',
'tell me weather in *',
'how is weather on *',
'tell me weather forecast in *',
'tell me weather forecast on *',
'what is weather like on *',
'how is weather like on *',
'how is weather like in *',
'what is weather at *',
'tell me weather forecast at *',
'how is weather at *',
'tell me weather on *',
'tell me weather at *',
'what is weather on *',
'what is weather like at *',
'what is weather like in *',
'what is weather in *'],
'weather_location_tomorrow': ['how is weather in * next day',
'what is weather like next day on *',
'tell me tomorrow weather on *',
'what is weather in * tomorrow',
'tell me next day weather forecast at *',
'what is weather next day in *',
'how is weather like tomorrow on *',
'what is weather like at * tomorrow',
'what is weather at * next day',
'how is weather like next day on *',
'how is weather at * next day',
'what is weather on * tomorrow',
'what is weather next day at *',
'what is weather at * tomorrow',
'what is weather tomorrow on *',
'what is weather like in * next day',
'how is weather like on * tomorrow',
'what is weather like on * next day',
'what is weather tomorrow at *',
'how is weather like at * tomorrow',
'how is weather at * tomorrow',
'tell me next day weather forecast in *',
'tell me next day weather in *',
'how is weather in * tomorrow',
'how is weather like at * next day',
'how is weather like next day at *',
'what is weather on * next day',
'what is weather like tomorrow in *',
'tell me tomorrow weather forecast in *',
'how is weather tomorrow on *',
'what is weather like tomorrow on *',
'how is weather like in * next day',
'how is weather like tomorrow in *',
'how is weather tomorrow in *',
'how is weather on * next day',
'what is weather tomorrow in *',
'how is weather on * tomorrow',
'how is weather like on * next day',
'tell me next day weather at *',
'what is weather like on * tomorrow',
'tell me tomorrow weather in *',
'how is weather like next day in *',
'how is weather like in * tomorrow',
'what is weather like next day in *',
'how is weather tomorrow at *',
'how is weather next day in *',
'tell me next day weather on *',
'tell me tomorrow weather at *',
'what is weather like tomorrow at *',
'how is weather next day at *',
'how is weather like tomorrow at *',
'how is weather next day on *',
'what is weather in * next day',
'what is weather like next day at *',
'what is weather next day on *',
'what is weather like at * next day',
'tell me tomorrow weather forecast at *',
'tell me next day weather forecast on *',
'what is weather like in * tomorrow',
'tell me tomorrow weather forecast on *'],
'weather_now': [],
'weather_tomorrow': []}