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

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


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

commit 8c602ad8d998771f1348a60a5a607a202df90e05
Author: Aaron Radzinski <[email protected]>
AuthorDate: Mon Mar 15 15:30:34 2021 -0700

    WIP.
---
 README.md                                                             | 2 +-
 .../src/main/scala/org/apache/nlpcraft/examples/sql/SqlModel.scala    | 4 ++--
 .../main/scala/org/apache/nlpcraft/model/tools/test/NCTestClient.java | 2 --
 .../apache/nlpcraft/probe/mgrs/dialogflow/NCDialogFlowManager.scala   | 2 +-
 4 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 7168998..4d8c8c7 100644
--- a/README.md
+++ b/README.md
@@ -148,7 +148,7 @@ elements:
       - "{<ACTION>|shut|kill|stop|eliminate} {off|out} <LIGHT>"
       - "no <LIGHT>"
 intents:
-  - "intent=ls term(act)~{groups @@ 'act'} term(loc)~{id == 'ls:loc'}*"
+  - "intent=ls term(act)~{has(groups(), 'act')} term(loc)~{id() == 'ls:loc'}*"
 ```
 
 ### Model Implementation
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/sql/SqlModel.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/sql/SqlModel.scala
index 63cecb1..4089507 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/sql/SqlModel.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/sql/SqlModel.scala
@@ -278,8 +278,8 @@ class SqlModel extends 
NCModelFileAdapter("org/apache/nlpcraft/examples/sql/sql_
       */
     @NCIntent(
         "intent=commonReport " +
-        "term(tbls)~{groups @@ 'table'}[0,7] " +
-        "term(cols)~{id() == 'col:date' || id == 'col:num' || id == 
'col:varchar'}[0,7] " +
+        "term(tbls)~{has(groups(), 'table')}[0,7] " +
+        "term(cols)~{id() == 'col:date' || id() == 'col:num' || id() == 
'col:varchar'}[0,7] " +
         "term(condNums)~{id() == 'condition:num'}[0,7] " +
         "term(condVals)~{id() == 'condition:value'}[0,7] " +
         "term(condDates)~{id() == 'condition:date'}[0,7] " +
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/test/NCTestClient.java
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/test/NCTestClient.java
index c631f57..46f57a3 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/test/NCTestClient.java
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/test/NCTestClient.java
@@ -98,8 +98,6 @@ public interface NCTestClient {
     void clearConversation() throws NCTestClientException, IOException;
 
     /**
-     * TODO:
-     *
      * @throws NCTestClientException Thrown if any test system errors occur.
      * @throws IOException Thrown in case of I/O errors.
      */
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/dialogflow/NCDialogFlowManager.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/dialogflow/NCDialogFlowManager.scala
index aeb931f..f8bb4cb 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/dialogflow/NCDialogFlowManager.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/dialogflow/NCDialogFlowManager.scala
@@ -110,7 +110,7 @@ object NCDialogFlowManager extends NCService {
                     override def getTermTokens(idx: Int) = 
intentMatch.getTermTokens(idx)
                     override def getTermTokens(termId: String) = 
intentMatch.getTermTokens(termId)
                     override val getVariant = intentMatch.getVariant
-                    override val isAmbiguous = !res.isExactMatch // TODO: 
rename for consistency?
+                    override val isAmbiguous = !res.isExactMatch
                     override val getUser = req.getUser
                     override val getCompany = req.getCompany
                     override val getServerRequestId = req.getServerRequestId

Reply via email to