This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-206
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-206 by this push:
new 721fbf0 WIP (compiles OK).
721fbf0 is described below
commit 721fbf0fa5db74889c9d4e7f8c90e50c7eba516e
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Mar 5 17:57:59 2021 -0800
WIP (compiles OK).
---
.../org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala | 6 ++++--
.../apache/nlpcraft/model/intent/dsl/NCIntentDslCompilerSpec.scala | 1 -
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala
index e926439..e94fdbd 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/deploy/NCDeployManager.scala
@@ -1553,8 +1553,10 @@ object NCDeployManager extends NCService with
DecorateAsScala {
val distinct = seqSeq.map(_.distinct).distinct
- for (ann ← intAnns)
- samples += (NCIntentDslCompiler.compile(ann.value(),
mdlId, mStr) → distinct)
+ for (ann ← intAnns) {
+ for (intent ← NCIntentDslCompiler.compile(ann.value(),
mdlId, mStr))
+ samples += (intent.id → distinct)
+ }
for (ann ← refAnns)
samples += (ann.value() → distinct)
}
diff --git
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCIntentDslCompilerSpec.scala
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCIntentDslCompilerSpec.scala
index fdbcb31..ac54ccd 100644
---
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCIntentDslCompilerSpec.scala
+++
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/NCIntentDslCompilerSpec.scala
@@ -19,7 +19,6 @@ package org.apache.nlpcraft.model.intent.dsl
import org.apache.nlpcraft.common._
import org.apache.nlpcraft.model.intent.impl.{NCIntentDslCompiler,
NCIntentDslFragmentCache}
-import org.apache.nlpcraft.model.intent.impl.ver2.NCIntentDslFragmentCache
import org.junit.jupiter.api.Test
import java.nio.file.{Path, Paths}