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

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


The following commit(s) were added to refs/heads/NLPCRAFT-384 by this push:
     new fb1ef92  WIP.
fb1ef92 is described below

commit fb1ef925b13ad51c12ec2a837b64872f2569bb84
Author: Aaron Radzinski <[email protected]>
AuthorDate: Tue Aug 17 13:01:15 2021 -0700

    WIP.
---
 .../cargps/src/main/resources/cargps_intents.idl       |  6 +++---
 .../cargps/src/main/resources/cargps_model.yaml        | 18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/nlpcraft-examples/cargps/src/main/resources/cargps_intents.idl 
b/nlpcraft-examples/cargps/src/main/resources/cargps_intents.idl
index 9d3f43f..64b5532 100644
--- a/nlpcraft-examples/cargps/src/main/resources/cargps_intents.idl
+++ b/nlpcraft-examples/cargps/src/main/resources/cargps_intents.idl
@@ -20,6 +20,6 @@ fragment=hey term={tok_id() == "x:hey" && tok_is_first()}
 
 // Intents.
 intent=int:cancel fragment(hey) term={tok_id() == "x:cancel"}
-intent=int:navigate fragment(hey)
-intent=int:add:waypoint fragment(hey)
-intent=int:remove:waypoint fragment(hey)
\ No newline at end of file
+intent=int:navigate fragment(hey) term={tok_id() == "x:navigate"}
+intent=int:add:waypoint fragment(hey) term={tok_id() == "x:x:add-waypoint"}
+intent=int:remove:waypoint fragment(hey) term={tok_id() == 
"x:x:remove-waypoint"}
\ No newline at end of file
diff --git a/nlpcraft-examples/cargps/src/main/resources/cargps_model.yaml 
b/nlpcraft-examples/cargps/src/main/resources/cargps_model.yaml
index 7258d37..8c56eb9 100644
--- a/nlpcraft-examples/cargps/src/main/resources/cargps_model.yaml
+++ b/nlpcraft-examples/cargps/src/main/resources/cargps_model.yaml
@@ -28,6 +28,8 @@ macros:
     macro: 
"{navigate|pilot|plot|drive|route|plan|find|head|ride|direct|steer|operate|sail}
 {out|*} {course|route|destination|drive|*}"
   - name: "<CANCEL>"
     macro: "{cancel|stop|abort|finish|cease|quit} {off|*}"
+  - name: "<WAYPOINT>"
+    macro: "{waypoint|location|point|stopover|stop over|way 
station|stop|checkpoint|stop point} {point|station|*}"
 
 #
 # Allows for multi-word synonyms in this entire model
@@ -49,5 +51,21 @@ elements:
     synonyms:
       - "<CANCEL>"
 
+  - id: "x:navigate"
+    description: "Start 'navigate' action."
+    synonyms:
+      - "<NAVIGATE>"
+
+  - id: "x:add-waypoint"
+    description: "Add 'waypoint' action."
+    synonyms:
+      - "{add|make} <WAYPOINT>"
+      - "stop by"
+
+  - id: "x:remove-waypoint"
+    description: "Remove 'waypoint' action."
+    synonyms:
+      - "{skip|remove} {over|*} {last|latest|*} <WAYPOINT>"
+
 intents:
   - "import('cargps_intents.idl')"
\ No newline at end of file

Reply via email to