This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-287
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-287 by this push:
new 2acbd60 WIP.
2acbd60 is described below
commit 2acbd60a4424f792192f9c22a80aad3f572fd1ed
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Apr 15 12:39:40 2021 +0300
WIP.
---
...ec4.scala => NCEnricherNestedModelSpec41.scala} | 23 ++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git
a/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec4.scala
b/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec41.scala
similarity index 76%
rename from
nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec4.scala
rename to
nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec41.scala
index 680086d..9f5d13f 100644
---
a/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec4.scala
+++
b/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec41.scala
@@ -27,7 +27,7 @@ import scala.collection.JavaConverters._
/**
* Nested Elements test model.
*/
-class NCNestedTestModel4 extends NCModelAdapter(
+class NCNestedTestModel41 extends NCModelAdapter(
"nlpcraft.nested4.test.mdl", "Nested Data Test Model", "1.0"
) {
override def getElements: util.Set[NCElement] =
@@ -49,8 +49,23 @@ class NCNestedTestModel4 extends NCModelAdapter(
/**
* It shouldn't be too slow.
*/
-@NCTestEnvironment(model = classOf[NCNestedTestModel4], startClient = true)
-class NCEnricherNestedModelSpec4 extends NCTestContext {
+@NCTestEnvironment(model = classOf[NCNestedTestModel41], startClient = true)
+class NCEnricherNestedModelSpec41 extends NCTestContext {
@Test
def test(): Unit = checkIntent("the a " * 11, "onE2")
-}
\ No newline at end of file
+}
+
+class NCNestedTestModel42 extends NCNestedTestModel41 {
+ override def isPermutateSynonyms: Boolean = true
+ override def isSparse: Boolean = true
+}
+
+/**
+ * It shouldn't be too slow.
+ */
+@NCTestEnvironment(model = classOf[NCNestedTestModel42], startClient = true)
+class NCEnricherNestedModelSpec42 extends NCTestContext {
+ @Test
+ def test(): Unit = checkIntent("the a " * 8, "onE2")
+}
+