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 f8f4946  Update NCSuggestSynonymManager.scala
f8f4946 is described below

commit f8f49469936829ca756fddf09623b356a213e083
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Thu May 27 21:54:50 2021 -0700

    Update NCSuggestSynonymManager.scala
---
 .../org/apache/nlpcraft/server/sugsyn/NCSuggestSynonymManager.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/sugsyn/NCSuggestSynonymManager.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/sugsyn/NCSuggestSynonymManager.scala
index bdd2949..02e51d2 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/sugsyn/NCSuggestSynonymManager.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/sugsyn/NCSuggestSynonymManager.scala
@@ -342,7 +342,7 @@ object NCSuggestSynonymManager extends NCService {
                                 if (err.get() != null)
                                     throw new NCE("Error while working with 
'ctxword' server.", err.get())
 
-                                val allSynsStems = 
elemSyns.flatMap(_._2).toSeq.flatten.map(_.stem).toSet
+                                val allSynsStems = 
elemSyns.flatMap(_._2).toSeq.flatMap(x => x).map(_.stem).toSet
 
                                 val nonEmptySgsts = allSgsts.asScala.map(p => 
p._1 -> p._2.asScala).filter(_._2.nonEmpty)
 

Reply via email to