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

commit 426b8e8bdedb569634ea657b3f6f859a0045b467
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Sep 16 11:13:17 2021 +0300

    WIP.
---
 .../probe/mgrs/nlp/enrichers/model/NCModelEnricher.scala       |  5 ++++-
 .../org/apache/nlpcraft/model/stop/NCStopWordsInsideSpec.scala | 10 +++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

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 ca388ed..6908265 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
@@ -525,7 +525,10 @@ object NCModelEnricher extends NCProbeEnricher {
                             if (!found && mdl.hasSparseSynonyms)
                                 for (s <- get(mdl.sparseSynonyms, eId))
                                     s.sparseMatch(toks) match {
-                                        case Some(res) => add("simple sparse", 
ns, contCache, eId, greedy, res, idxs, s)
+                                        case Some(res) =>
+                                            
println("!!!toks="+toks.map(_.origText))
+                                            
println("!!!res="+res.map(_.origText))
+                                            add("simple sparse", ns, 
contCache, eId, greedy, res, idxs, s)
                                         case None => // No-op.
                                     }
                         }
diff --git 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/stop/NCStopWordsInsideSpec.scala
 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/stop/NCStopWordsInsideSpec.scala
index b17cea8..9e3e911 100644
--- 
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/stop/NCStopWordsInsideSpec.scala
+++ 
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/stop/NCStopWordsInsideSpec.scala
@@ -68,12 +68,12 @@ class NCStopWordsInsideSparseModel extends 
NCStopWordsInsideModel {
 class NCStopWordsInsideSparseSpec extends NCStopWordsInsideSpec {
     @Test
     def test2(): Unit = {
-        checkIntent("a b", "i")
+        //checkIntent("a b", "i")
         checkIntent("a the b", "i")
-        checkIntent("a , b", "i")
-        checkIntent("a, b", "i")
-        checkIntent("a, the b", "i")
-        checkIntent("a, the, b", "i")
+//        checkIntent("a , b", "i")
+//        checkIntent("a, b", "i")
+//        checkIntent("a, the b", "i")
+//        checkIntent("a, the, b", "i")
     }
 }
 

Reply via email to