Take this example.
Home Automation Intent Parser.
Automation Phrases used will be like below:
- “Mycroft Set First floor Office Temperature at Twenty”
- “Mycroft Switch On Ground floor Kitchen Table Light”
- “Mycroft Switch Off Second floor Bathroom Heater”
Automation Intent Parser:
action_keyword = [“Set”, “On”, “Off”] —> Require
floor_keyword = [“Ground”, “First”, “Second”] —> Require
room_keyword =[“Kitchen”,“Office”,“Bathroom”] —> Require
device_keyword =[“Heater”, “Cooler” “Ceiling”, “Table”] —> Require
Q:- How Intent Parser will handle “Temperature at Twenty” ?
Other two phrases (2 and 3 ) looks ok, as entities are known.
Q:- How Automation Skill will get this number Twenty in json before setting office temperature?
Twenty is not a known entity, Do we need to registered another keyword with intent parser ?
temperature_keyword = [“one”, “two”…“fifty five”] —> Require / Optional
If we make temperature_keyword optional and Automation Intent Parser detect no Temperature Value in phrase, then it will definitely pass null to Skill in json for temperature value.
Suppose Automation Skill put a check on Temperature value (which is null) and ask again for Temperature,
user replied “set it at Twenty”,
In this case do we need another Temperature Intent Parser to parse Temperature Value?
Take another example :
A Voice Calculator
“Calculate Five Thousand Divide by Twenty Five”
Calculator Intent Parser
calci_keyword=[“Calculate”, “Calci”] ------> Require
Operation_keyword=[“Multiply”,“Divide”,“Plus”,“Minus”] —> Require
What about “Five Thousand” and " Twenty Five" ?
How Intent Parser will deal with Numbers ?
Stock Exchange Intent Parser
“BUY Thousand Share of APPLE Limit two hundred point five”
“SELL Twenty Lot of ORACLE Market”
What about “Thousand” and " two hundred point five" ?
How Intent Parser will deal with Numbers ?