You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2022/12/23 10:26:34 UTC

[incubator-nlpcraft] branch NLPCRAFT-521 updated: WIP.

This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-521
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-521 by this push:
     new 08262145 WIP.
08262145 is described below

commit 08262145fc696a6ee624a85d68e131e35b31f2f6
Author: Sergey Kamov <sk...@gmail.com>
AuthorDate: Fri Dec 23 14:26:46 2022 +0400

    WIP.
---
 .../src/test/scala/org/apache/nlpcraft/nlp/NCEntityMapperSpec.scala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/nlpcraft/src/test/scala/org/apache/nlpcraft/nlp/NCEntityMapperSpec.scala b/nlpcraft/src/test/scala/org/apache/nlpcraft/nlp/NCEntityMapperSpec.scala
index b82c1600..bc71a28c 100644
--- a/nlpcraft/src/test/scala/org/apache/nlpcraft/nlp/NCEntityMapperSpec.scala
+++ b/nlpcraft/src/test/scala/org/apache/nlpcraft/nlp/NCEntityMapperSpec.scala
@@ -37,7 +37,7 @@ class NCEntityMapperSpec extends AnyFunSuite:
                 es
             else
                 val newEntity: NCEntity = new NCPropertyMapAdapter with NCEntity:
-                    override val getTokens: List[NCToken] = replaced.flatMap(_.getTokens).sortBy(_.getIndex).toList
+                    override val getTokens: List[NCToken] = replaced.flatMap(_.getTokens).sortBy(_.getIndex)
                     override val getRequestId: String = req.getRequestId
                     override val getType: String = types.mkString
 
@@ -47,9 +47,9 @@ class NCEntityMapperSpec extends AnyFunSuite:
                 buf --= replaced
                 (buf :+ newEntity).sortBy(_.getTokens.head.getIndex).toList
 
-    private val mdl = new NCTestModelAdapter:
+    private val mdl: NCTestModelAdapter = new NCTestModelAdapter:
         override val getPipeline: NCPipeline =
-            import NCSemanticTestElement as TE
+            import org.apache.nlpcraft.nlp.parsers.NCSemanticTestElement as TE
             val pl = mkEnPipeline(TE("a"), TE("b"), TE("c"), TE("d"))
             val ms = pl.entMappers