This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-443
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-443 by this push:
new d4f7f1b WIP.
d4f7f1b is described below
commit d4f7f1bdb8ed76fec6c14badba33ba08eb52d01f
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Sep 23 19:20:43 2021 +0300
WIP.
---
.../nlpcraft/probe/mgrs/sentence/NCSentenceManager.scala | 1 -
.../nlp/enrichers/model/NCEnricherNestedModelSpec4.scala | 12 ++++++------
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/sentence/NCSentenceManager.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/sentence/NCSentenceManager.scala
index d57e5a9..9d52fa5 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/sentence/NCSentenceManager.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/sentence/NCSentenceManager.scala
@@ -767,7 +767,6 @@ object NCSentenceManager extends NCService {
toSeq
// Drops sentences if they are just subset of another.
- // (Maybe better for lastPhase?)
sensWithNotes = sensWithNotes.filter { case (sen, _) =>
sens.contains(sen) }
sensWithNotesIdxs = sensWithNotes.zipWithIndex
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/NCEnricherNestedModelSpec4.scala
index 825e4a2..758171f 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/NCEnricherNestedModelSpec4.scala
@@ -17,7 +17,7 @@
package org.apache.nlpcraft.probe.mgrs.nlp.enrichers.model
-import org.apache.nlpcraft.model.{NCElement, NCIntent, NCIntentMatch,
NCModelAdapter, NCResult}
+import org.apache.nlpcraft.model.{NCElement, NCIntent, NCModelAdapter,
NCResult}
import org.apache.nlpcraft.{NCTestContext, NCTestElement, NCTestEnvironment}
import org.junit.jupiter.api.Test
@@ -53,7 +53,7 @@ class NCNestedTestModel41 extends NCNestedTestModel4Adapter {
*/
@NCTestEnvironment(model = classOf[NCNestedTestModel41], startClient = true)
class NCEnricherNestedModelSpec41 extends NCTestContext {
- // @Test
+ @Test
def test(): Unit = checkIntent("the a " * 11, "onE2")
}
@@ -74,7 +74,7 @@ class NCNestedTestModel42 extends NCNestedTestModel4Adapter {
*/
@NCTestEnvironment(model = classOf[NCNestedTestModel41], startClient = true)
class NCEnricherNestedModelSpec42 extends NCTestContext {
- // @Test
+ @Test
def test(): Unit = checkIntent("the a " * 11, "onE2")
}
@@ -95,7 +95,7 @@ class NCNestedTestModel43 extends NCNestedTestModel4Adapter {
*/
@NCTestEnvironment(model = classOf[NCNestedTestModel43], startClient = true)
class NCEnricherNestedModelSpec43 extends NCTestContext {
- // @Test
+ @Test
def test(): Unit = checkIntent("the a " * 4, "onE2")
}
@@ -116,7 +116,7 @@ class NCNestedTestModel44 extends NCNestedTestModel4Adapter
{
*/
@NCTestEnvironment(model = classOf[NCNestedTestModel44], startClient = true)
class NCEnricherNestedModelSpec44 extends NCTestContext {
- // @Test
- def test(): Unit = checkIntent("the a " * 2, "onE2")
+ @Test
+ def test(): Unit = checkIntent("the a " * 4, "onE2")
}