Created
July 16, 2019 17:39
-
-
Save aradzinski/0d2b46d68f3c9cf9cf5d0424a93222fa to your computer and use it in GitHub Desktop.
LightSwich Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: "nlpcraft.lightswitch.ex" | |
name: "Light Switch Example Model" | |
version: "1.0" | |
description: "NLI-powered light switch example model." | |
macros: | |
- name: "<ACTION>" | |
macro: "{turn|switch|dial|control|let|set|get|put}" | |
- name: "<ENTIRE_OPT>" | |
macro: "{entire|full|whole|total|*}" | |
- name: "<LIGHT>" | |
macro: "{all|*} {it|them|light|illumination|lamp|lamplight}" | |
enabledTokens: [] # Don't use any built-in tokens. | |
elements: | |
- id: "ls:loc" | |
description: "Location of lights." | |
synonyms: | |
- "<ENTIRE_OPT> {upstairs|downstairs|*} {kitchen|library|closet|garage|office|playroom|{dinning|laundry|play} room}" | |
- "<ENTIRE_OPT> {upstairs|downstairs|*} {master|kid|children|child|guest|*} {bedroom|bathroom|washroom|storage} {closet|*}" | |
- "<ENTIRE_OPT> {house|home|building|{1st|first} floor|{2nd|second} floor}" | |
- id: "ls:on" | |
groups: | |
- "act" | |
description: "Light switch ON action." | |
synonyms: | |
- "<ACTION> <LIGHT> on" | |
- "<ACTION> on <LIGHT>" | |
- id: "ls:off" | |
groups: | |
- "act" | |
description: "Light switch OFF action." | |
synonyms: | |
- "<ACTION> <LIGHT> {off|out}" | |
- "{<ACTION>|shut|kill|stop|eliminate} {off|out} <LIGHT>" | |
- "no <LIGHT>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment