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/07/09 17:34:19 UTC

[incubator-nlpcraft] branch master updated: Improvements for NLPCRAFT-360.

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 5a1b06f  Improvements for NLPCRAFT-360.
5a1b06f is described below

commit 5a1b06f1cc0c1ccf2f11de9cdb177077a03839df
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Fri Jul 9 10:34:06 2021 -0700

    Improvements for NLPCRAFT-360.
---
 .../src/main/scala/org/apache/nlpcraft/model/NCIntentSample.java   | 7 ++++---
 .../scala/org/apache/nlpcraft/common/makro/NCMacroParserSpec.scala | 2 ++
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSample.java b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSample.java
index d50f689..f3ec645 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSample.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSample.java
@@ -17,11 +17,12 @@
 
 package org.apache.nlpcraft.model;
 
-import org.apache.nlpcraft.model.tools.test.*;
+import org.apache.nlpcraft.model.tools.test.NCTestAutoModelValidator;
+
 import java.lang.annotation.*;
 
-import static java.lang.annotation.ElementType.*;
-import static java.lang.annotation.RetentionPolicy.*;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
 
 /**
  * Annotation to define samples of the user input that should match an intent. This
diff --git a/nlpcraft/src/test/scala/org/apache/nlpcraft/common/makro/NCMacroParserSpec.scala b/nlpcraft/src/test/scala/org/apache/nlpcraft/common/makro/NCMacroParserSpec.scala
index b6ffe2b..0941889 100644
--- a/nlpcraft/src/test/scala/org/apache/nlpcraft/common/makro/NCMacroParserSpec.scala
+++ b/nlpcraft/src/test/scala/org/apache/nlpcraft/common/makro/NCMacroParserSpec.scala
@@ -95,6 +95,8 @@ class NCMacroParserSpec  {
             assert(false)
         } catch {
             case e: NCE =>
+                println("Expected error below:")
+                println("^^^^^^^^^^^^^^^^^^^^^")
                 println(e.getMessage)
                 assert(true)
         }