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

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


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

commit 0579a51606a92dbdcd4805305ed1ca9c9c8d7e5f
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Wed Jun 9 14:43:07 2021 -0700

    WIP.
---
 .../main/scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceNote.scala   | 1 -
 .../org/apache/nlpcraft/probe/mgrs/sentence/NCSentenceManager.scala     | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceNote.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceNote.scala
index 8e3fb10..c356550 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceNote.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceNote.scala
@@ -167,7 +167,6 @@ class NCNlpSentenceNote(private val values: Map[String, 
JSerializable]) extends
         seq1 ++ seq2
     }
 
-
     /**
       *
       * @return
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 63913ac..339bb4c 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
@@ -656,7 +656,7 @@ object NCSentenceManager extends NCService {
                 distinct
 
         // Optimization. Deletes all wholly swallowed notes.
-        val links = getLinks(sen.tokens.flatMap(p => p))
+        val links = getLinks(sen.tokens.toSeq.flatten)
 
         val swallowed =
             delCombs.

Reply via email to