You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2022/09/27 20:43:40 UTC

[incubator-nlpcraft] 02/02: Update NCModel.scala

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

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

commit eb6f7c64cabac01ce5d32de43eda33a5ad2952fa
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Tue Sep 27 13:43:31 2022 -0700

    Update NCModel.scala
---
 nlpcraft/src/main/scala/org/apache/nlpcraft/NCModel.scala | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModel.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModel.scala
index 16d41b34..05991e28 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModel.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModel.scala
@@ -128,8 +128,7 @@ trait NCModel:
       *
       * Default implementation is a no-op returning `None`.
       *
-      * @param ctx Optional intent match context - the same instance that's passed to the matched intent callback
-      *         that produced this rejection. It is `None` if rejection was triggered outside the intent callback.
+      * @param ctx Intent match context - the same instance that's passed to the matched intent that produced this error.
       * @param im Optional intent match context - the same instance that's passed to the matched intent callback
       *         that produced this result. It is `None` if rejection was triggered outside the intent callback.
       * @param e Rejection exception.
@@ -138,7 +137,7 @@ trait NCModel:
       *         and existing query result or error processing, if any. If the method returns `None` - the default
       *         processing flow will continue.
       */
-    def onRejection(ctx: Option[NCContext], im: Option[NCIntentMatch], e: NCRejection): Option[NCResult] = None
+    def onRejection(ctx: NCContext, im: Option[NCIntentMatch], e: NCRejection): Option[NCResult] = None
 
     /**
       * A callback that is called when intent callback failed with unexpected exception. Note that this callback may