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
commit 6e47e13c8deef23b3ed3b2e191218a234bbb8fbf Author: Sergey Kamov <[email protected]> AuthorDate: Tue Apr 13 22:45:46 2021 +0300 WIP. --- .../nlpcraft/probe/mgrs/model/NCModelManager.scala | 1 + .../mgrs/nlp/enrichers/model/NCModelEnricher.scala | 1 - .../model/NCEnricherNestedModelSpec.scala | 48 +++++++++++----------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/model/NCModelManager.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/model/NCModelManager.scala index aa1dbf4..d43f8fa 100644 --- a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/model/NCModelManager.scala +++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/model/NCModelManager.scala @@ -58,6 +58,7 @@ object NCModelManager extends NCService with DecorateAsScala { data.values.foreach(w ⇒ { val mdl = w.model + // TODO: println("w.directSynonyms="+w.continuousSynonyms.getOrElse("col:orders_order_date", Map.empty).mkString("\n")) println("w.sparseSynonyms="+w.sparseSynonyms.getOrElse("col:orders_order_date", Seq.empty).mkString("\n")) println("w.synonymsDsl="+w.dslSynonyms.getOrElse("col:orders_order_date", Seq.empty).mkString("\n")) diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCModelEnricher.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCModelEnricher.scala index 8d5c9f2..713132c 100644 --- a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCModelEnricher.scala +++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCModelEnricher.scala @@ -186,7 +186,6 @@ object NCModelEnricher extends NCProbeEnricher with DecorateAsScala { // Internal usage. params += "allToksIndexes" → allToksIdxs.asJava - params += "toksIndexes" → toks.map(_.index).asJava params += "continuous" → continuous syn match { diff --git a/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec.scala b/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec.scala index 91d037b..00ee50f 100644 --- a/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec.scala +++ b/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec.scala @@ -79,34 +79,34 @@ class NCEnricherNestedModelSpec2 extends NCEnricherNestedModelSpec1 { @Test def test2(): Unit = runBatch( - _ ⇒ checkExists( - "test tomorrow", - usr(text = "test tomorrow", id = "x3") - ), - _ ⇒ checkExists( - "tomorrow test", - usr(text = "tomorrow test", id = "x3") - ), +// _ ⇒ checkExists( +// "test tomorrow", +// usr(text = "test tomorrow", id = "x3") +// ), +// _ ⇒ checkExists( +// "tomorrow test", +// usr(text = "tomorrow test", id = "x3") +// ), _ ⇒ checkExists( "test xxx tomorrow", usr(text = "test tomorrow", id = "x3"), nlp(text = "xxx"), ), - _ ⇒ checkExists( - "y the y", - usr(text = "y y", id = "y3"), - nlp(text = "the", isStop = true) - ), - _ ⇒ checkExists( - "y xxx y", - usr(text = "y y", id = "y3"), - nlp(text = "xxx") - ), - _ ⇒ checkExists( - "aaa y xxx y", - nlp(text = "aaa"), - usr(text = "y y", id = "y3"), - nlp(text = "xxx") - ) +// _ ⇒ checkExists( +// "y the y", +// usr(text = "y y", id = "y3"), +// nlp(text = "the", isStop = true) +// ), +// _ ⇒ checkExists( +// "y xxx y", +// usr(text = "y y", id = "y3"), +// nlp(text = "xxx") +// ), +// _ ⇒ checkExists( +// "aaa y xxx y", +// nlp(text = "aaa"), +// usr(text = "y y", id = "y3"), +// nlp(text = "xxx") +// ) ) } \ No newline at end of file
