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 2020/06/10 13:29:28 UTC

[incubator-nlpcraft] branch NLPCRAFT-41 updated: Suggester service fixed.

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

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


The following commit(s) were added to refs/heads/NLPCRAFT-41 by this push:
     new 310faaf  Suggester service fixed.
310faaf is described below

commit 310faafe4c1afe040d5818c95c6c530b1b4a8cc2
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Wed Jun 10 16:29:22 2020 +0300

    Suggester service fixed.
---
 .../nlpcraft/model/tools/suggestions/NCSuggestionsGenerator.scala     | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/suggestions/NCSuggestionsGenerator.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/suggestions/NCSuggestionsGenerator.scala
index 8df43f9..b6c2a37 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/suggestions/NCSuggestionsGenerator.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/suggestions/NCSuggestionsGenerator.scala
@@ -246,8 +246,6 @@ object NCSuggestionsGeneratorImpl {
 
         cdl.await(Long.MaxValue, TimeUnit.MILLISECONDS)
 
-        println("All requests executed.")
-
         val allSynsStems = elemSyns.flatMap(_._2).flatten.map(_.stem).toSet
 
         val filteredSuggs =
@@ -327,7 +325,7 @@ object NCSuggestionsGeneratorImpl {
             }
         }
 
-        println(s"Suggestions [calculated '${System.currentTimeMillis() - now}' ms.")
+        println(s"Suggestions calculated (${(System.currentTimeMillis() - now) / 1000} secs)")
 
         tbl.render()
     }