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 2021/03/17 18:36:30 UTC

[incubator-nlpcraft] branch NLPCRAFT-206 updated: Update NCIntentSolverEngine.scala

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 b54343c  Update NCIntentSolverEngine.scala
b54343c is described below

commit b54343c558fc8c17e7a1bb8fa0fbc5ca402e2840
Author: Aaron Radzinski <ar...@apache.org>
AuthorDate: Wed Mar 17 11:36:20 2021 -0700

    Update NCIntentSolverEngine.scala
---
 .../apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala
index 0f4aa94..5ff65a0 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala
@@ -179,7 +179,7 @@ object NCIntentSolverEngine extends LazyLogging with NCOpenCensusTrace {
     /**
      * Main entry point for intent engine.
      *
-     * @param ctx     Query context.
+     * @param ctx Query context.
      * @param intents Set of intents to match for.
      * @param logHldr Log holder.
      * @return
@@ -595,7 +595,7 @@ object NCIntentSolverEngine extends LazyLogging with NCOpenCensusTrace {
                             logger,
                             Some(
                                 s"Intent '$intentId' ${r("did not")} match because of remaining unused user tokens $varStr." +
-                                    s"\nUnused user tokens for intent '$intentId' $varStr:"
+                                s"\nUnused user tokens for intent '$intentId' $varStr:"
                             )
                         )
                 else {
@@ -720,7 +720,7 @@ object NCIntentSolverEngine extends LazyLogging with NCOpenCensusTrace {
             require(min == 0)
             require(usedToks.isEmpty)
 
-            Some(usedToks → new Weight(0, 0))
+            Some(usedToks → new Weight(0, 0, 0))
         }
         // We've found some matches (and min > 0).
         else {