This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-491
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-491 by this push:
new 991626b WIP.
991626b is described below
commit 991626b949383ba9e2ff61614300717010dcc225
Author: Sergey Kamov <[email protected]>
AuthorDate: Sat Apr 2 12:27:47 2022 +0300
WIP.
---
.../src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala | 4 ++--
nlpcraft-examples/order/src/main/resources/order_model.yaml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
b/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
index 28acfad..253acbd 100644
---
a/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
+++
b/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
@@ -93,9 +93,9 @@ class OrderModel extends NCModelAdapter (
ord.clear()
NCResult("Order canceled. We are ready for new orders.",
ASK_RESULT)
- val res=
+ val res =
// 'stop' command.
- if !dlg.isEmpty && dlg.get(dlg.size() -
1).getIntentMatch.getIntentId == "ord:stop" then
+ if !dlg.isEmpty && dlg.get(dlg.size() -
1).getIntentMatch.getIntentId == "stop" then
confirm.getId match
case "ord:confirm:yes" => cancelAll()
case "ord:confirm:no" => confirmOrSpecify(ord)
diff --git a/nlpcraft-examples/order/src/main/resources/order_model.yaml
b/nlpcraft-examples/order/src/main/resources/order_model.yaml
index b7c4c30..245294e 100644
--- a/nlpcraft-examples/order/src/main/resources/order_model.yaml
+++ b/nlpcraft-examples/order/src/main/resources/order_model.yaml
@@ -60,7 +60,7 @@ elements:
- "{you are|*} {not|are not|aren't } {correct|right}"
- id: "ord:confirm:continue"
- description: "Conformation (continue)."
+ description: "Confirmation (continue)."
groups: ["confirm"]
synonyms:
- "{continue}"
@@ -68,4 +68,4 @@ elements:
- id: "ord:stop"
description: "Stop and cancel all."
synonyms:
- - "{stop|cancel} {it|all|everything|*}"
\ No newline at end of file
+ - "{stop|cancel} {it|all|everything|_}"
\ No newline at end of file