From 39daa2ab2e885c5de66b00d970eddd5975195d7f Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Wed, 16 Oct 2024 15:15:24 +0200 Subject: basic process execution config --- sentences/_common.yaml | 54 ++++++++++++++++++++++++++++++++ sentences/process_HesExecuteProcess.yaml | 9 +++--- 2 files changed, 58 insertions(+), 5 deletions(-) (limited to 'sentences') diff --git a/sentences/_common.yaml b/sentences/_common.yaml index 12b3e27..7c22012 100644 --- a/sentences/_common.yaml +++ b/sentences/_common.yaml @@ -1,4 +1,58 @@ language: "en" + +lists: + workspace: + range: + type: "number" + from: 1 + to: 10 + workspace_word: + values: + - in: "first" + out: 1 + - in: "1st" + out: 1 + - in: "second" + out: 2 + - in: "2nd" + out: 1 + - in: "third" + out: 3 + - in: "3rd" + out: 3 + - in: "fourth" + out: 4 + - in: "4th" + out: 4 + - in: "fifth" + out: 5 + - in: "5th" + out: 5 + - in: "sixth" + out: 6 + - in: "6th" + out: 6 + - in: "seventh" + out: 7 + - in: "7th" + out: 7 + - in: "eight" + out: 8 + - in: "8th" + out: 8 + - in: "ninth" + out: 9 + - in: "9th" + out: 9 + - in: "tenth" + out: 10 + - in: "10th" + out: 10 + +expansion_rules: + workspace: "(workspace {workspace}|{workspace_word:workspace} workspace)" + in_workspace: "(in|on|at) [the ]" + skip_words: - "please" - "can you" diff --git a/sentences/process_HesExecuteProcess.yaml b/sentences/process_HesExecuteProcess.yaml index 864b9c0..8d5669e 100644 --- a/sentences/process_HesExecuteProcess.yaml +++ b/sentences/process_HesExecuteProcess.yaml @@ -3,15 +3,14 @@ intents: HesExecuteProcess: data: - sentences: - - " [ ]" + - " []" + slots: + domain: "process" lists: process: wildcard: true - workspace: - wildcard: true expansion_rules: process: "[the ]{process}" - execute: "(execute|open|run|start)" - in_workspace: "(in|on|at) [the ]{workspace}" \ No newline at end of file + execute: "(execute|open|run|start)" \ No newline at end of file -- cgit v1.2.3-70-g09d2