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/06/10 05:31:32 UTC

[incubator-nlpcraft-website] branch web-site updated: Various website updates.

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

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


The following commit(s) were added to refs/heads/web-site by this push:
     new c392d1e  Various website updates.
c392d1e is described below

commit c392d1efaf9d160896d023999160b9e3b8d8327c
Author: Aaron Radzinzski <ar...@datalingvo.com>
AuthorDate: Tue Jun 9 22:31:16 2020 -0700

    Various website updates.
---
 examples/alarm_clock.html  |   2 +-
 examples/light_switch.html |   2 +-
 examples/weather_bot.html  |   2 +-
 feed.xml                   |   2 +-
 images/gridgain-logo.png   | Bin 0 -> 5326 bytes
 index.html                 |   2 +-
 integrations.html          |  28 +++++++---------------------
 tools/sql_model_gen.html   |   2 +-
 8 files changed, 13 insertions(+), 27 deletions(-)

diff --git a/examples/alarm_clock.html b/examples/alarm_clock.html
index 5ab76cb..68b7e9e 100644
--- a/examples/alarm_clock.html
+++ b/examples/alarm_clock.html
@@ -154,7 +154,7 @@ public class AlarmModel extends NCModelFileAdapter {
         return NCResult.text("Timer set for: " + FMT.format(dt));
     }
 }
-        </pre><p> There's a bit of a logic here that deals mostly with taking multiple numeric values and converting them into a single number of milliseconds that the alarm clock needs to be set up for. Let's review it step by step:</p><ul><li> On line 9 our class extends <code>NCModelFileAdapter</code> that allows us to load most of the model declaration from the external JSON or YAML file (line 18) and only provide functionality that we couldn't express in declarative portion in JSON. [...]
+        </pre><p> There's a bit of a logic here that deals mostly with taking multiple numeric values and converting them into a single number of milliseconds that the alarm clock needs to be set up for. Let's review it step by step:</p><ul><li> On line 9 our class extends <code>NCModelFileAdapter</code> that allows us to load most of the model declaration from the external JSON or YAML file (line 18) and only provide functionality that we couldn't express in declarative portion in JSON. [...]
 package org.apache.nlpcraft.examples.alarm;
 
 import org.apache.nlpcraft.common.NCException;
diff --git a/examples/light_switch.html b/examples/light_switch.html
index 1b5f4c6..0b98d1b 100644
--- a/examples/light_switch.html
+++ b/examples/light_switch.html
@@ -109,7 +109,7 @@ class LightSwitchModel extends NCModelFileAdapter("org/apache/nlpcraft/examples/
         NCResult.text(s"Lights '$status' in '${locations.toLowerCase}'.")
     }
 }
-        </pre><p> The intent callback logic is very simple - we simply return a descriptive confirmation message back (explaining what lights were changed). With action and location detected - you can easily add the actual light switching using HomeKit or Arduino devices. Let's review this implementation step by step:</p><ul><li> On <code>line 4</code> our class extends <code>NCModelFileAdapter</code> that allows us to load most of the model declaration from the external YAML file and on [...]
+        </pre><p> The intent callback logic is very simple - we simply return a descriptive confirmation message back (explaining what lights were changed). With action and location detected - you can easily add the actual light switching using HomeKit or Arduino devices. Let's review this implementation step by step:</p><ul><li> On <code>line 4</code> our class extends <code>NCModelFileAdapter</code> that allows us to load most of the model declaration from the external YAML file and on [...]
 package org.apache.nlpcraft.examples.lightswitch;
 
 import org.apache.nlpcraft.common.NCException;
diff --git a/examples/weather_bot.html b/examples/weather_bot.html
index 0bb01d3..ad2f21b 100644
--- a/examples/weather_bot.html
+++ b/examples/weather_bot.html
@@ -158,7 +158,7 @@
             throw new NCRejection("Weather provider error.", e);
         }
     }
-        </pre><p> There three methods define three intents. Each intent is defined "in place", i.e. as an annotation on the method that acts as a callback for that intent:</p><ul><li> Line 1 defines intent and the callback for the weather forecast (weather in the future):<ul><li>Intent is ordered (default), supports conversation (default) and has ID <code>fcast</code><li>Intent has one mandatory term and two optional terms:<ul><li> Mandatory term is defined as a token with ID <code>wt:fc [...]
+        </pre><p> There three methods define three intents. Each intent is defined "in place", i.e. as an annotation on the method that acts as a callback for that intent:</p><ul><li> Line 1 defines intent and the callback for the weather forecast (weather in the future):<ul><li>Intent is ordered (default), supports conversation (default) and has ID <code>fcast</code><li>Intent has one mandatory term and two optional terms:<ul><li> Mandatory term is defined as a token with ID <code>wt:fc [...]
 package org.apache.nlpcraft.examples.weather;
 
 import com.google.gson.Gson;
diff --git a/feed.xml b/feed.xml
index 69c21e7..aa07449 100644
--- a/feed.xml
+++ b/feed.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2020-06-01T19:42:49-07:00</updated><id>http://localhost:4000/feed.xml</id><title type="html">Apache NLPCraft</title></feed>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2020-06-09T22:28:12-07:00</updated><id>http://localhost:4000/feed.xml</id><title type="html">Apache NLPCraft</title></feed>
\ No newline at end of file
diff --git a/images/gridgain-logo.png b/images/gridgain-logo.png
new file mode 100644
index 0000000..eacd4e0
Binary files /dev/null and b/images/gridgain-logo.png differ
diff --git a/index.html b/index.html
index 9bc4f2c..ee68c8d 100644
--- a/index.html
+++ b/index.html
@@ -15,4 +15,4 @@
  limitations under the License.
 -->
 
-<!doctype html><html lang="en"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="An open source API to convert natural language into actions."><meta name="author" content="NLPCraft."><link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" [...]
+<!doctype html><html lang="en"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="An open source API to convert natural language into actions."><meta name="author" content="NLPCraft."><link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" [...]
diff --git a/integrations.html b/integrations.html
index 634ffcf..a34bf7a 100644
--- a/integrations.html
+++ b/integrations.html
@@ -15,35 +15,21 @@
  limitations under the License.
 -->
 
-<!doctype html><html lang="en"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="An open source API to convert natural language into actions."><meta name="author" content="NLPCraft."><link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" [...]
+<!doctype html><html lang="en"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="description" content="An open source API to convert natural language into actions."><meta name="author" content="NLPCraft."><link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" [...]
                     &lt;dependency&gt;
                         &lt;groupId&gt;edu.stanford.nlp&lt;/groupId&gt;
                         &lt;artifactId&gt;stanford-corenlp&lt;/artifactId&gt;
                         &lt;version&gt;3.9.2&lt;/version&gt;
                     &lt;/dependency&gt;
-                    </pre></div><div class="tab-pane fade" id="nav-stanfordnlp-grape" role="tabpanel"><pre class="brush: java">
+                </pre></div><div class="tab-pane fade" id="nav-stanfordnlp-grape" role="tabpanel"><pre class="brush: java">
                     @Grab ('edu.stanford.nlp:stanford-corenlp:3.9.2')
-                    </pre></div><div class="tab-pane fade" id="nav-stanfordnlp-gradle" role="tabpanel"><pre class="brush: java">
+                </pre></div><div class="tab-pane fade" id="nav-stanfordnlp-gradle" role="tabpanel"><pre class="brush: java">
                     dependencies {
                         runtime group: 'edu.stanford.nlp', name: 'stanford-corenlp', version: '3.9.2'
                     }
-                    </pre></div><div class="tab-pane fade" id="nav-stanfordnlp-sbt" role="tabpanel"><pre class="brush: scala">
+                </pre></div><div class="tab-pane fade" id="nav-stanfordnlp-sbt" role="tabpanel"><pre class="brush: scala">
                     libraryDependencies += "mysql" % "stanford-corenlp" % "3.9.2"
-                    </pre></div></div><p> Comments:</p><ul><li> Stanford CoreNLP is licensed under <a target=_ href="https://www.gnu.org/licenses/gpl-3.0.en.html">GNU General Public License v3</a> - make sure your usage is compliant with this license.<li> Stanford CoreNLP library must be available <b>on both</b> the REST server and the data probe.<li> Make sure to change <code>3.9.2</code> version to the latest or required one.<li> Set configuration property <code>nlpcraft.nlpEngine=stan [...]
-                    &lt;dependency&gt;
-                        &lt;groupId&gt;edu.stanford.nlp&lt;/groupId&gt;
-                        &lt;artifactId&gt;stanford-corenlp&lt;/artifactId&gt;
-                        &lt;version&gt;3.9.2&lt;/version&gt;
-                    &lt;/dependency&gt;
-                    </pre></div><div class="tab-pane fade" id="nav-stanfordnlp-grape2" role="tabpanel"><pre class="brush: java">
-                    @Grab ('edu.stanford.nlp:stanford-corenlp:3.9.2')
-                    </pre></div><div class="tab-pane fade" id="nav-stanfordnlp-gradle2" role="tabpanel"><pre class="brush: java">
-                    dependencies {
-                        runtime group: 'edu.stanford.nlp', name: 'stanford-corenlp', version: '3.9.2'
-                    }
-                    </pre></div><div class="tab-pane fade" id="nav-stanfordnlp-sbt2" role="tabpanel"><pre class="brush: scala">
-                    libraryDependencies += "mysql" % "stanford-corenlp" % "3.9.2"
-                    </pre></div></div><p> Comments:</p><ul><li> Stanford CoreNLP is licensed under <a target=_ href="https://www.gnu.org/licenses/gpl-3.0.en.html">GNU General Public License v3</a> - make sure your usage is compliant with this license.<li> Stanford CoreNLP library should <b>only</b> be available on the data probe.<li> Make sure to change <code>3.9.2</code> version to the latest or required one.<li> Note that you can also <a target=_ href="https://stanfordnlp.github.io/Cor [...]
+                </pre></div></div><p> Note that you can also <a target=_ href="https://stanfordnlp.github.io/CoreNLP/">download</a> Stanford CoreNLP as a separate JAR file and add it to your project classpath if you are not using, or instead of, build tools.</p><h3 class="section-title">Base NLP Engine</h3><p> You can set Stanford CoreNLP as a base NLP engine:</p><ul><li> Set configuration property <code>nlpcraft.nlpEngine=stanford</code><li> Stanford CoreNLP library must be available <b [...]
 import urllib.parse
 
 import spacy
@@ -104,7 +90,7 @@ if __name__ == '__main__':
         host="localhost",
         port='5002'
     )
-        </pre><p> You need to start this REST server before you can use spaCy integration in NLPCraft. Note that for production environment it is recommended to use <a target=_ href="https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface">WSGI-based server</a> instead.</p><p> Comments:</p><ul><li> On line 11 you can add or change spaCy models to be loaded.<li> On lines 29-30 you can change how spans' external attributes are collected.<li> On lines 58-59 you can change the endpoint on [...]
+        </pre><p> You need to start this REST server before you can use spaCy integration in NLPCraft. Note that for production environment it is recommended to use <a target=_ href="https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface">WSGI-based server</a> instead.</p><p> Comments:</p><ul><li> On line 11 you can add or change spaCy models to be loaded.<li> On lines 29-30 you can change how spans' external attributes are collected.<li> On lines 58-59 you can change the endpoint on [...]
                     &lt;dependency&gt;
                         &lt;groupId&gt;mysql&lt;/groupId&gt;
                         &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
@@ -146,4 +132,4 @@ if __name__ == '__main__':
                     }
                     </pre></div><div class="tab-pane fade" id="nav-oracle-sbt" role="tabpanel"><pre class="brush: scala">
                     libraryDependencies += "org.oracle" % "ojdbc14" % "10.2.0.4.0"
-                    </pre></div></div><p> Comments:</p><ul><li> Make sure to change <code>10.2.0.4.0</code> version to the latest or required one.<li> Update configuration property <code>nlpcraft.server.database.jdbc</code> with required JDBC driver class and JDBC URL.<li> Use scripts from <code>sql/oracle</code> folder to create database and initialize DB schema.</ul></section></div><div class="col-md-2 third-column"><ul class="side-nav"><li class="side-nav-title">On This Page<li><a hre [...]
+                    </pre></div></div><p> Comments:</p><ul><li> Make sure to change <code>10.2.0.4.0</code> version to the latest or required one.<li> Update configuration property <code>nlpcraft.server.database.jdbc</code> with required JDBC driver class and JDBC URL.<li> Use scripts from <code>sql/oracle</code> folder to create database and initialize DB schema.</ul></section><section> <img id="gridgain" class="img-title" src="/images/gridgain-logo.png" width="200px" alt=""><p> NLPCraf [...]
diff --git a/tools/sql_model_gen.html b/tools/sql_model_gen.html
index 4b6c661..4e0e681 100644
--- a/tools/sql_model_gen.html
+++ b/tools/sql_model_gen.html
@@ -131,4 +131,4 @@ EXAMPLES:
         -s public
         -e "#_.+"
         -o model.json
-        </pre><p> After the data model stub is generated:</p><ul><li> Load generated YAML/JSON-based model using <a target="javadoc" href="https://javadoc.io/static/org.apache.nlpcraft/nlpcraft/0.5.0/org/apache/nlpcraft/model/NCModelFileAdapter.html">NCModelFileAdapter</a> class to instantiate model from this file.<li> Modify and extend generated model stub to your own needs. In most cases, you'll need to add, remove or modify auto-generated synonyms, add intents, etc. Note, however, tha [...]
+        </pre><p> After the data model stub is generated:</p><ul><li> Load generated YAML/JSON-based model using <a target="javadoc" href="https://javadoc.io/static/org.apache.nlpcraft/nlpcraft/0.5.0/org/apache/nlpcraft/model/NCModelFileAdapter.html">NCModelFileAdapter</a> class to instantiate model from this file.<li> Modify and extend generated model stub to your own needs. In most cases, you'll need to add, remove or modify auto-generated synonyms, add intents, etc. Note, however, tha [...]