This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-283
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-283 by this push:
new 8fb5d40 WIP.
8fb5d40 is described below
commit 8fb5d40b8e7afe98b77da62ca255ccec6c8f3942
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Mar 25 17:44:12 2021 +0300
WIP.
---
.../org/apache/nlpcraft/model/intent/compiler/NCIdlCompilerBase.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 daccbdb..faa6b38 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
@@ -742,7 +742,7 @@ trait NCIdlCompilerBase {
else {
val seq: Seq[Double] = lst.asScala.map(p ⇒
JDouble.valueOf(p.toString).doubleValue())
- Z(seq.sum / seq.size, n)
+ Z(seq.sum / seq.length, n)
}
catch {
case e: Exception ⇒ throw rtListTypeError(fun, e)