You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2020/08/23 23:41:52 UTC

[incubator-nlpcraft] branch master updated: Update suggest.sh

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 298d15d  Update suggest.sh
298d15d is described below

commit 298d15dbf5a53279e184b35b75b31c356cc9765d
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Sun Aug 23 16:41:43 2020 -0700

    Update suggest.sh
---
 nlpcraft/src/main/python/ctxword/bin/suggest.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nlpcraft/src/main/python/ctxword/bin/suggest.sh b/nlpcraft/src/main/python/ctxword/bin/suggest.sh
index 115a3cd..ca3f7e3 100755
--- a/nlpcraft/src/main/python/ctxword/bin/suggest.sh
+++ b/nlpcraft/src/main/python/ctxword/bin/suggest.sh
@@ -25,4 +25,4 @@
 # NOTE: You need to have REST server running (see 'start_server.sh' script in the same folder).
 #
 
-curl -d "{\"sentences\": [{\"text\": \"$1\", \"indexes\": [$2]}], \"simple\": true, \"limit\": 10}" -H 'Content-Type: application/json' http://localhost:5000/suggestions | python -m json.tool
+curl -d "{\"sentences\": [{\"text\": \"$1\", \"indexes\": [$2]}], \"simple\": true, \"limit\": 10}" -H 'Content-Type: application/json' http://localhost:5000/suggestions | python3 -m json.tool