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 7df83ec  Win scripts & docs.
7df83ec is described below

commit 7df83ec37251c0426967098a47fa824ed3a58e21
Author: Aaron Radzinski <[email protected]>
AuthorDate: Sun Aug 23 16:51:18 2020 -0700

    Win scripts & docs.
---
 nlpcraft/src/main/python/ctxword/README.md         | 22 +++++++++++++++++++---
 .../python/ctxword/bin/install_dependencies.sh     |  2 +-
 nlpcraft/src/main/python/ctxword/bin/suggest.sh    | 18 +++++++++++++++++-
 3 files changed, 37 insertions(+), 5 deletions(-)

diff --git a/nlpcraft/src/main/python/ctxword/README.md 
b/nlpcraft/src/main/python/ctxword/README.md
index 6749e1c..b49f318 100644
--- a/nlpcraft/src/main/python/ctxword/README.md
+++ b/nlpcraft/src/main/python/ctxword/README.md
@@ -76,13 +76,29 @@ Here's the sample request and response JSON objects:
  * Response JSON:
    - `[["word1", "word2", "word3"]]`
  
-### `bin/suggest.{sh|cmd|ps1}`
-You can use Curl-based `bin/suggest.sh` script for the suggestion processing 
of single sentences from the command line.
+### `bin/suggest.{sh|cmd}`
+You can use Curl-based `bin/suggest.{sh|cmd}` scripts for the suggestion 
processing of single sentences from the command line.
 Following call returns list of contextual suggestions for the 5th word 
(counting from zero) in the given sentence: 
 
 ```
 $ bin/suggest.sh "what is the chance of rain tomorrow?" 5
-[["rain","snow","rainfall","precipitation","rains","flooding","storms","raining","sunshine","showers"]]
+  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
+                                 Dload  Upload   Total   Spent    Left  Speed
+100   214  100   104  100   110    954   1009 --:--:-- --:--:-- --:--:--  1963
+[
+    [
+        "rain",
+        "snow",
+        "rainfall",
+        "precipitation",
+        "rains",
+        "flooding",
+        "storms",
+        "raining",
+        "sunshine",
+        "showers"
+    ]
+]
 ```                                     
 
 ### Copyright
diff --git a/nlpcraft/src/main/python/ctxword/bin/install_dependencies.sh 
b/nlpcraft/src/main/python/ctxword/bin/install_dependencies.sh
index 7759898..6f070a6 100755
--- a/nlpcraft/src/main/python/ctxword/bin/install_dependencies.sh
+++ b/nlpcraft/src/main/python/ctxword/bin/install_dependencies.sh
@@ -41,6 +41,6 @@ abort() {
 [ ! -d /tmp/fastText/ ] && git clone 
https://github.com/facebookresearch/fastText.git /tmp/fastText
 
 pip3 install /tmp/fastText || abort "Failed to install fasttext python module."
-pip3 install -r bin/py_requirements || abort "Failed to install pip 
requirements from 'bin/py_requirements'."
+pip3 install -r bin/py_requirements || abort "Failed to install pip3 
requirements from 'bin/py_requirements'."
 
 rm -rf /tmp/fastText
diff --git a/nlpcraft/src/main/python/ctxword/bin/suggest.sh 
b/nlpcraft/src/main/python/ctxword/bin/suggest.sh
index ca3f7e3..04f6013 100755
--- a/nlpcraft/src/main/python/ctxword/bin/suggest.sh
+++ b/nlpcraft/src/main/python/ctxword/bin/suggest.sh
@@ -20,7 +20,23 @@
 # Simple Curl-based script for getting contextual related words suggestions 
for a single input sentence.
 # Example:
 #     $ bin/suggest.sh "what is the chance of rain tomorrow?" 5
-#     
[["rain","snow","rainfall","precipitation","rains","flooding","storms","raining","sunshine","showers"]]
+#       % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
+#                                      Dload  Upload   Total   Spent    Left  
Speed
+#     100   214  100   104  100   110    954   1009 --:--:-- --:--:-- --:--:-- 
 1963
+#     [
+#         [
+#             "rain",
+#             "snow",
+#             "rainfall",
+#             "precipitation",
+#             "rains",
+#             "flooding",
+#             "storms",
+#             "raining",
+#             "sunshine",
+#             "showers"
+#         ]
+#     ]
 #
 # NOTE: You need to have REST server running (see 'start_server.sh' script in 
the same folder).
 #

Reply via email to