This is an automated email from the ASF dual-hosted git repository.

ifropc pushed a commit to branch NLPCRAFT-91
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git

commit 214b38e712e758a8d496c71500132d0d8c2faae2
Author: Ifropc <[email protected]>
AuthorDate: Wed Mar 24 20:48:59 2021 -0700

    NLPCRAFT-91: Fix for new IDL
---
 .../src/main/resources/minecraft.yaml                | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git 
a/nlpcraft-examples/minecraft-model/src/main/resources/minecraft.yaml 
b/nlpcraft-examples/minecraft-model/src/main/resources/minecraft.yaml
index 9d21b4b..2a5252d 100644
--- a/nlpcraft-examples/minecraft-model/src/main/resources/minecraft.yaml
+++ b/nlpcraft-examples/minecraft-model/src/main/resources/minecraft.yaml
@@ -101,7 +101,7 @@ elements:
   # Give intent
   - id: give:action
     synonyms:
-      - "{give ^^[target](id == 'mc:player')^^}"
+      - "{give ^^[target]{tok_id() == 'mc:player'}^^}"
     jiggleFactor: 0
     permutateSynonyms: false
   - id: give:block-word
@@ -127,12 +127,12 @@ elements:
       - "wall"
   - id: fill:length
     synonyms:
-      - "{{size|length|diameter} {of|_} ^^[length](id == 'nlpcraft:num')^^}"
+      - "{{size|length|diameter} {of|_} ^^[length]{tok_id() == 
'nlpcraft:num'}^^}"
   - id: position:player
     groups:
       - fill:position
     synonyms:
-      - "{{at|near} ^^[player](id == 'mc:player')^^ {position|_}|where 
^^[player](id == 'mc:player')^^}"
+      - "{{at|near} ^^[player]{tok_id() == 'mc:player'}^^ {position|_}|where 
^^[player]{tok_id() == 'mc:player'}^^}"
     jiggleFactor: 0
     permutateSynonyms: false
 
@@ -140,18 +140,18 @@ elements:
     groups:
       - fill:position
     synonyms:
-      - "{{^^[distance](id == 'nlpcraft:num')^^|_} {in|_} front {of|_} 
^^[player](id == 'mc:player')^^}"
+      - "{{^^[distance]{tok_id() == 'nlpcraft:num'}^^|_} {in|_} front {of|_} 
^^[player]{tok_id() == 'mc:player'}^^}"
     jiggleFactor: 0
     permutateSynonyms: false
 
 # List of model intents.
 intents:
-  - intent=weatherIntent term={id == 'weather:action'}? term(arg)={groups @@ 
'weather'}
-  - intent=timeIntent term(arg)={groups @@ 'time'}
-  - "intent=giveIntent term(action)={id == 'give:action'} term(quantity)={id 
== 'nlpcraft:num'}?
-  term(item)={id == 'mc:item'} term={id == 'give:block-word'}?"
-  - "intent=fillIntent term={id == 'fill:action'} term(shape)={groups @@ 
'fill:shape'} term(block)={id == 'mc:item'}
-  term(len)={id == 'fill:length'}? term(position)={groups @@ 'fill:position'}"
+  - intent=weatherIntent term={tok_id() == 'weather:action'}? 
term(arg)={has(tok_groups(), 'weather')}
+  - intent=timeIntent term(arg)={has(tok_groups(), 'time')}
+  - "intent=giveIntent term(action)={tok_id() == 'give:action'} 
term(quantity)={tok_id() == 'nlpcraft:num'}?
+  term(item)={tok_id() == 'mc:item'} term={tok_id() == 'give:block-word'}?"
+  - "intent=fillIntent term={tok_id() == 'fill:action'} 
term(shape)={has(tok_groups(), 'fill:shape')} term(block)={tok_id() == 
'mc:item'}
+  term(len)={tok_id() == 'fill:length'}? term(position)={has(tok_groups(), 
'fill:position')}"
 
 # give me sand
 swearWordsAllowed: true

Reply via email to