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/02/24 17:40:57 UTC

[incubator-nlpcraft] branch master updated: Update NCIntentSolverManager.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


The following commit(s) were added to refs/heads/master by this push:
     new b640d16  Update NCIntentSolverManager.scala
b640d16 is described below

commit b640d16487309719b2e5f0e892f3f72da37cd786
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Thu Feb 24 09:40:52 2022 -0800

    Update NCIntentSolverManager.scala
---
 .../nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala  | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala
index 11475bd..33b0ec1 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/matcher/NCIntentSolverManager.scala
@@ -68,12 +68,6 @@ object NCIntentSolverManager:
       * @param termId
       * @param entities
       */
-
-    /**
-      *
-      * @param termId
-      * @param entities
-      */
     private case class IntentTermEntities(termId: Option[String], entities: Seq[NCEntity])
 
     /**
@@ -671,10 +665,8 @@ class NCIntentSolverManager(dialog: NCDialogFlowManager, intents: Map[NCIDLInten
                     // This can throw NCIntentSkip exception.
                     val cbRes = intentRes.fn(intentMatch)
                     // Store won intent match in the input.
-
                     if cbRes.getIntentId == null then
                         cbRes.setIntentId(intentRes.intentId)
-
                     logger.info(s"Intent '${intentRes.intentId}' for variant #${intentRes.variantIdx + 1} selected as the <|best match|>")
                     dialog.addMatchedIntent(intentMatch, cbRes, ctx)
                     Loop.finish(Option(IterationResult(cbRes, intentMatch)))