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 98d26e2  Update NCIdlCompilerBase.scala
98d26e2 is described below

commit 98d26e22484a7cba3d244a7fe5a92e5599fad8d7
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Wed Apr 7 15:43:14 2021 -0700

    Update NCIdlCompilerBase.scala
---
 .../org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
index 8969121..c4e888a 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala
@@ -1041,6 +1041,8 @@ trait NCIdlCompilerBase {
 
                 if (isList(v))
                     Z(asList(v).size(), n)
+                else if (isMap(v))
+                    Z(asMap(v).size(), n)
                 else if (isStr(v))
                     Z(asStr(v).length, n)
                 else
@@ -1056,6 +1058,8 @@ trait NCIdlCompilerBase {
 
                 if (isList(v))
                     Z(asList(v).isEmpty == empty, n)
+                else if (isMap(v))
+                    Z(asMap(v).isEmpty == empty, n)
                 else if (isStr(v))
                     Z(asStr(v).isEmpty == empty, n)
                 else

Reply via email to