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

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


The following commit(s) were added to refs/heads/NLPCRAFT-510 by this push:
     new 8370725a Validation fixes.
8370725a is described below

commit 8370725addd910d0692f1bb26d059c2887e6f554
Author: Sergey Kamov <[email protected]>
AuthorDate: Wed Aug 10 11:11:00 2022 +0300

    Validation fixes.
---
 nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala         | 2 +-
 .../main/scala/org/apache/nlpcraft/validation/NCModelValidator.scala    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala
index e73ba8cc..15d110fe 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala
@@ -221,7 +221,7 @@ class NCModelClient(mdl: NCModel) extends LazyLogging, 
AutoCloseable:
       * @param saveHist
       * @return
       */
-    private[nlpcraft] def debugAsk(txt: String, usrId: String, saveHist: 
Boolean, data: Map[String, AnyRef]): NCFiredIntent =
+    private[nlpcraft] def validateAsk(txt: String, usrId: String, saveHist: 
Boolean, data: Map[String, AnyRef]): NCFiredIntent =
         require(txt != null, "Input text cannot be null.")
         require(data != null, "Data cannot be null.")
         require(usrId != null, "User id cannot be null.")
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/validation/NCModelValidator.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/validation/NCModelValidator.scala
index 160f7345..860b190a 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/validation/NCModelValidator.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/validation/NCModelValidator.scala
@@ -32,5 +32,5 @@ object NCModelValidator:
 class NCModelValidator(client: NCModelClient, clientClose: Boolean = false) 
extends LazyLogging, AutoCloseable:
     override def close(): Unit = if clientClose then client.close()
 
-    def validateAsk(txt: String, usrId: String, saveHist: Boolean = false, 
data: Map[String, AnyRef] = Map.empty): NCFiredIntent = client.debugAsk(txt, 
usrId, saveHist, data)
+    def validateAsk(txt: String, usrId: String, saveHist: Boolean = false, 
data: Map[String, AnyRef] = Map.empty): NCFiredIntent = client.validateAsk(txt, 
usrId, saveHist, data)
     def validateSamples(): Unit = client.validateSamples()
\ No newline at end of file

Reply via email to