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/07/07 11:51:23 UTC
[incubator-nlpcraft] branch NLPCRAFT-41 updated: Fixes.
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 682179b Fixes.
682179b is described below
commit 682179bdf512bf3b44f11335f47a1e7ad980cf94
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Tue Jul 7 14:51:16 2020 +0300
Fixes.
---
nlpcraft/src/main/python/ctxword/bin/predict.sh | 19 -------------------
.../tools/suggestions/NCSuggestionsGenerator.scala | 4 ++--
2 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/nlpcraft/src/main/python/ctxword/bin/predict.sh b/nlpcraft/src/main/python/ctxword/bin/predict.sh
deleted file mode 100755
index d82a5d9..0000000
--- a/nlpcraft/src/main/python/ctxword/bin/predict.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-curl -d "{\"sentences\": [{\"text\": \"$1\", \"indexes\": [$2]}], \"simple\": true, \"limit\": 10}" -H 'Content-Type: application/json' http://localhost:5000/suggestions
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 6c29c50..945d130 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
@@ -240,8 +240,8 @@ object NCSuggestionsGeneratorImpl {
"Element",
"Suggestion",
"ContextWord Server Score",
- "Count",
- "Summary Score"
+ "Suggested times",
+ "Totla Score",
)
nonEmptySuggs.