Add fuzzy and text-classification light model #1
1 changed files with 2 additions and 2 deletions
|
@ -65,9 +65,9 @@ class Ratatouille():
|
||||||
if command == 'GetTime':
|
if command == 'GetTime':
|
||||||
return self.send_hour()
|
return self.send_hour()
|
||||||
elif command == "LightOn":
|
elif command == "LightOn":
|
||||||
self.light_on_single(payload['intentArg'][0])
|
return self.light_on_single(payload['intentArg'][0])
|
||||||
elif command == "LightOff":
|
elif command == "LightOff":
|
||||||
self.light_off_single(payload['intentArg'][0])
|
return self.light_off_single(payload['intentArg'][0])
|
||||||
|
|
||||||
def weather_query(self, entities):
|
def weather_query(self, entities):
|
||||||
if any(a in entities['B-weather_descriptor'] for a in TEMPERATURE_KEYWORD):
|
if any(a in entities['B-weather_descriptor'] for a in TEMPERATURE_KEYWORD):
|
||||||
|
|
Loading…
Add table
Reference in a new issue