This is an automated email from the ASF dual-hosted git repository. sergeykamov pushed a commit to branch NLPCRAFT-500 in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit 0b2855bda936fe4f0ff2bb7b256ca2ba72bd6936 Author: Sergey Kamov <[email protected]> AuthorDate: Thu Aug 25 11:20:08 2022 +0300 IDL fragments related fixes. --- .../apache/nlpcraft/internal/intent/compiler/NCIDLCompiler.scala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLCompiler.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLCompiler.scala index 1385dcf4..bb93bd9d 100644 --- a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLCompiler.scala +++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLCompiler.scala @@ -489,9 +489,12 @@ class NCIDLCompiler(cfg: NCModelConfig) extends LazyLogging with mutable.Cloneab def clone(cp: NCIDLCompiler): NCIDLCompiler = val cp = new NCIDLCompiler(cfg) + cp.intents ++= cp.intents.clone() - cp.importCache ++= importCache.clone() - cp.fragCache ++= fragCache.clone() + + cp.importCache ++= this.importCache.clone() + cp.fragCache ++= this.fragCache.clone() + cp override def clone(): NCIDLCompiler = clone(this)
