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 bb33282dad81024e1c1f644fa685d9350d61323e Merge: bfaade6a 984da908 Author: Aaron Radzinski <[email protected]> AuthorDate: Sat Oct 15 14:20:27 2022 -0700 Merge branch 'master' of https://github.com/apache/incubator-nlpcraft build.sbt | 3 +- .../lightswitch/NCModelValidationSpec.scala | 3 +- .../lightswitch/NCModelValidationSpec.scala | 3 +- .../lightswitch/LightSwitchScalaModelSpec.scala | 3 +- .../examples/time/NCModelValidationSpec.scala | 3 +- .../nlpcraft/models/NCIntCalcModelSpec.scala | 106 +++++++++++++++++++++ .../main/scala/org/apache/nlpcraft/NCModel.scala | 83 ++++++++-------- .../nlp/enrichers/NCEnStopWordsTokenEnricher.scala | 2 +- .../nlpcraft/nlp/parsers/NCNLPEntityParser.scala | 2 +- nlpcraft/src/test/resources/scan/samples.txt | 19 ---- 10 files changed, 159 insertions(+), 68 deletions(-) diff --cc nlpcraft-examples/lightswitch/src/test/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchScalaModelSpec.scala index c3c6a75d,06f93382..94d770af --- a/nlpcraft-examples/lightswitch/src/test/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchScalaModelSpec.scala +++ b/nlpcraft-examples/lightswitch/src/test/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchScalaModelSpec.scala @@@ -25,9 -25,10 +25,10 @@@ import scala.util.Usin /** * JUnit models validation. */ -class NCModelValidationSpec extends AnyFunSuite: +class LightSwitchScalaModelSpec extends AnyFunSuite: private def test(mdl: NCModel): Unit = Using.resource(new NCModelClient(mdl)) { client => - def check(txt: String): Unit = client.debugAsk(txt, "userId", true).getIntentId == "ls" + def check(txt: String): Unit = + require(client.debugAsk(txt, "userId", true).getIntentId == "ls") check("Turn the lights off in the entire house.") check("Turn off all lights now")
