This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-296
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-296 by this push:
new d8b45a4 Update NCIdlCompilerBase.scala
d8b45a4 is described below
commit d8b45a47ce8ec852cd717c3d14b678f5fe0d7552
Author: unknown <[email protected]>
AuthorDate: Tue Jun 8 13:58:02 2021 -0700
Update NCIdlCompilerBase.scala
---
.../nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
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 30b8eda..ec30c64 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
@@ -783,8 +783,14 @@ trait NCIdlCompilerBase {
stack.push(() => {
val Z(v, n) = x()
- if (isList(v))
- Z(toList(v).asScala.map(_.toString).asJava, n)
+ if (isList(v)) {
+ val jl = new util.ArrayList[Object]()
+
+ for (d <- toList(v).asScala.map(_.toString))
+ jl.add(d)
+
+ Z(jl, n)
+ }
else
Z(v.toString, n)
})