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 27bb4a3 WIP.
27bb4a3 is described below
commit 27bb4a3bb4d61eb2cf25aefa3a9db76a3b1690c1
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Thu Mar 11 09:43:46 2021 -0800
WIP.
---
.../org/apache/nlpcraft/model/intent/compiler/NCDslCompiler.scala | 2 +-
.../apache/nlpcraft/model/intent/dsl/compiler/NCDslCompilerSpec.scala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompiler.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompiler.scala
index 5d39f36..81ae576 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompiler.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/compiler/NCDslCompiler.scala
@@ -557,7 +557,7 @@ object NCDslCompiler extends LazyLogging {
def compileIntents(
dsl: String,
mdlId: String,
- origin: String = "<inline>"
+ origin: String
): Set[NCDslIntent] = parseIntents(dsl, mdlId, origin)
/**
diff --git
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/compiler/NCDslCompilerSpec.scala
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/compiler/NCDslCompilerSpec.scala
index 03c2ccb..370510e 100644
---
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/compiler/NCDslCompilerSpec.scala
+++
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/intent/dsl/compiler/NCDslCompilerSpec.scala
@@ -35,7 +35,7 @@ class NCDslCompilerSpec {
*/
private def checkCompileOk(dsl: String): Unit =
try {
- NCDslCompiler.compileIntents(dsl, MODEL_ID)
+ NCDslCompiler.compileIntents(dsl, MODEL_ID, MODEL_ID)
assert(true)
}
@@ -63,7 +63,7 @@ class NCDslCompilerSpec {
*/
private def checkCompileError(txt: String): Unit =
try {
- NCDslCompiler.compileIntents(txt, MODEL_ID)
+ NCDslCompiler.compileIntents(txt, MODEL_ID, MODEL_ID)
assert(false)
} catch {