Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #55 // TURN ON (recognizer)

Lua code

assert(input, 'Error: input is nil')
input = input:lower()

if input == 'computer on' or input == 'switch on' or input == 'turn on'
  or input == 'on!' or input == '!on' or input == 'on' then
  return 'TURN ON'
end

Author comment

A recognizer for the TURN ON intention.

test run  test run with input  download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

2 comment(s) hidden. show

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 220 [visualize]

Snippet ID: #55
Snippet name: TURN ON (recognizer)
Eternal ID of this version: #55/1
Text MD5: 792fe94f01b550ee7b4df5e332023be5
Author: stefan
Category: intention recognizer
Type: Lua code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2013-12-31 17:13:42
Source code size: 220 bytes / 7 lines
Pitched / IR pitched: Yes / Yes
Views / Downloads: 1575 / 450
Referenced in: [show references]