This is an automated email from the ASF dual-hosted git repository. sergeykamov pushed a commit to branch NLPCRAFT-510-1 in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-510-1 by this push: new eefd1d3b Validation fixes. eefd1d3b is described below commit eefd1d3b264bb346850c5ec0b1bbc891930347ab Author: Sergey Kamov <skhdlem...@gmail.com> AuthorDate: Wed Aug 10 11:15:41 2022 +0300 Validation fixes. --- nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala index 16bf86af..cdc0d411 100644 --- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala +++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelClient.scala @@ -46,12 +46,12 @@ class NCModelClient(mdl: NCModel) extends LazyLogging, AutoCloseable: private val dlgMgr = NCDialogFlowManager(mdl.getConfig) private val plMgr = NCModelPipelineManager(mdl.getConfig, mdl.getPipeline) private val intentsMgr = NCIntentSolverManager(dlgMgr, convMgr, intents.map(p => p.intent -> p.function).toMap) + private val validator = new NCModelValidator() : + override def validateAsk(txt: String, usrId: String, saveHist: Boolean, data: Map[String, AnyRef]): NCFiredIntent = validateAsk0(txt, usrId, saveHist, data) + override def validateSamples(): Unit = validateSamples0() init() - private val validator = new NCModelValidator(): - override def validateAsk(txt: String, usrId: String, saveHist: Boolean, data: Map[String, AnyRef]): NCFiredIntent = validateAsk0(txt, usrId, saveHist, data) - override def validateSamples(): Unit = validateSamples0() /** * */