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 449f965  WIP.
449f965 is described below

commit 449f9652ca99a40b0ce3f7ce7606f608bb7b9919
Author: Sergey Kamov <[email protected]>
AuthorDate: Fri Sep 18 09:57:37 2020 +0300

    WIP.
---
 .../apache/nlpcraft/server/sugsyn/NCSuggestSynonymManager.scala    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

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 5fa6351..a22cd93 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
@@ -191,7 +191,7 @@ object NCSuggestSynonymManager extends NCService {
                             promise.success(
                                 NCSuggestSynonymResult(
                                     modelId = mdlId,
-                                    minScore = 0,
+                                    minScore = minScore,
                                     durationMs = System.currentTimeMillis() - 
now,
                                     timestamp = now,
                                     error = err,
@@ -326,8 +326,7 @@ object NCSuggestSynonymManager extends NCService {
                                                     GSON.toJson(
                                                         RestRequest(
                                                             sentences = 
batch.map(p ⇒ RestRequestSentence(p.sentence, Seq(p.index).asJava)).asJava,
-                                                            // 'ctxword'' 
server range is (0, 2), input range is (0, 1)
-                                                            minScore = 
minScore * 2,
+                                                            minScore = 0,
                                                             limit = MAX_LIMIT
                                                         )
                                                     ),
@@ -459,4 +458,4 @@ object NCSuggestSynonymManager extends NCService {
 
             promise.future
         }
-}
+}
\ No newline at end of file

Reply via email to