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

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


The following commit(s) were added to refs/heads/NLPCRAFT-379 by this push:
     new 25e2e36  WIP on NLPCRAFT-379
25e2e36 is described below

commit 25e2e36cd77cb485b6cbfdf562e6ddef48b4d8ba
Author: Aaron Radzinski <[email protected]>
AuthorDate: Sun Jul 25 12:57:43 2021 -0700

    WIP on NLPCRAFT-379
---
 .../main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
index 11ae5b8..8116d07 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
@@ -860,6 +860,9 @@ class NCBasicRestApi extends NCRestApi with LazyLogging 
with NCOpenCensusTrace w
                             require(
                                 res.containsKey("synonyms") &&
                                 res.containsKey("synonymsExp") &&
+                                res.containsKey("synonymsExpRatePct") &&
+                                res.containsKey("synonymsExpCnt") &&
+                                res.containsKey("synonymsCnt") &&
                                 res.containsKey("values") &&
                                 res.containsKey("valuesExp")
                             )
@@ -867,6 +870,9 @@ class NCBasicRestApi extends NCRestApi with LazyLogging 
with NCOpenCensusTrace w
                             toJs(
                                 Map(
                                     "status" -> API_OK.toString,
+                                    "synonymsCnt" -> res.get("synonymsCnt"),
+                                    "synonymsExpCnt" -> 
res.get("synonymsExpCnt"),
+                                    "synonymsExpRatePct" -> 
res.get("synonymsExpRatePct"),
                                     "synonyms" -> res.get("synonyms"),
                                     "synonymsExp" -> res.get("synonymsExp"),
                                     "values" -> res.get("values"),

Reply via email to