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 fb91675 Update.
fb91675 is described below
commit fb916754eafce9a2650695a3d8ebccce00dac980
Author: Aaron Radzinski <[email protected]>
AuthorDate: Fri Jan 29 20:12:16 2021 -0800
Update.
---
404.html | 2 +-
basic-concepts.html | 2 +-
blogs.html | 2 +-
blogs/composable_named_entities.html | 4 +--
blogs/quick_intro_apache_nlpcraft.html | 4 +--
blogs/short_term_memory.html | 2 +-
cheat-sheet.html | 36 ++++++++++++-------------
community.html | 4 +--
data-model.html | 4 +--
docs.html | 2 +-
download.html | 28 ++++++++++----------
examples/alarm_clock.html | 4 +--
examples/light_switch.html | 4 +--
examples/sql_model.html | 4 +--
examples/weather_bot.html | 4 +--
feed.xml | 2 +-
first-example.html | 4 +--
getting-started.html | 4 +--
index.html | 2 +-
installation.html | 2 +-
integrations.html | 12 ++++-----
intent-matching.html | 4 +--
metrics-and-tracing.html | 4 +--
relnotes/release-notes-0.5.0.html | 2 +-
relnotes/release-notes-0.6.2.html | 2 +-
relnotes/release-notes-0.7.0.html | 2 +-
relnotes/release-notes-0.7.1.html | 2 +-
relnotes/release-notes-0.7.2.html | 2 +-
relnotes/release-notes-0.7.3.html | 2 +-
server-and-probe.html | 48 ++++++++++++++++++++--------------
tools/embedded_probe.html | 4 +--
tools/script.html | 4 +--
tools/sql_model_gen.html | 6 ++---
tools/syn_tool.html | 4 +--
tools/test_framework.html | 6 ++---
use-cases.html | 2 +-
using-rest.html | 4 +--
37 files changed, 119 insertions(+), 111 deletions(-)
diff --git a/404.html b/404.html
index 8d6ad9b..d7ec951 100644
--- a/404.html
+++ b/404.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/basic-concepts.html b/basic-concepts.html
index 44d4556..5e17dc1 100644
--- a/basic-concepts.html
+++ b/basic-concepts.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/blogs.html b/blogs.html
index b7d8161..0726192 100644
--- a/blogs.html
+++ b/blogs.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/blogs/composable_named_entities.html
b/blogs/composable_named_entities.html
index d660bbc..f518758 100644
--- a/blogs/composable_named_entities.html
+++ b/blogs/composable_named_entities.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
"elements": [
{
"id": "custom:city:usa",
@@ -41,4 +41,4 @@
]
}
]
- </pre><p> In this example, we defined a new named entity
<code>custom:airport:usa</code>. In its definition we not only filter cities
for the USA but also added a prefix that would indicate that this is an airport
(learn more about token DSL syntax <a
href="https://nlpcraft.apache.org/data-model.html#dsl">here</a>).</p><p>
Composable named entities can be nested but not recursive. All the normalized
metadata of the constituent (part) entities - of any nesting depths - is
accessible t [...]
+ </pre><p> In this example, we defined a new named entity
<code>custom:airport:usa</code>. In its definition we not only filter cities
for the USA but also added a prefix that would indicate that this is an airport
(learn more about token DSL syntax <a
href="https://nlpcraft.apache.org/data-model.html#dsl">here</a>).</p><p>
Composable named entities can be nested but not recursive. All the normalized
metadata of the constituent (part) entities - of any nesting depths - is
accessible t [...]
diff --git a/blogs/quick_intro_apache_nlpcraft.html
b/blogs/quick_intro_apache_nlpcraft.html
index 3e9a399..898a1b3 100644
--- a/blogs/quick_intro_apache_nlpcraft.html
+++ b/blogs/quick_intro_apache_nlpcraft.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
id: "nlpcraft.lightswitch.ex"
name: "Light Switch Example Model"
version: "1.0"
@@ -78,4 +78,4 @@
NCResult.text(s"Lights are [$status] in
[${locations.toLowerCase}].")
}
}
- </pre><p><b>NOTES:</b></p><ul><li> We use an <a target="javadoc"
href="/apis/latest/org/apache/nlpcraft/model/NCModelFileAdapter.html">NCModelFileAdapter</a>
adapter that allows us to load our static model configuration from a YAML
file.<li> Method <code>onMatch(...)</code> is a callback function for our
intent <code>"ls"</code> (define above in the
<code>lightswitch_model.yaml</code> file).<li> Method <code>onMatch(...)</code>
has two input parameters:<ul><li>A single token from the [...]
+ </pre><p><b>NOTES:</b></p><ul><li> We use an <a target="javadoc"
href="/apis/latest/org/apache/nlpcraft/model/NCModelFileAdapter.html">NCModelFileAdapter</a>
adapter that allows us to load our static model configuration from a YAML
file.<li> Method <code>onMatch(...)</code> is a callback function for our
intent <code>"ls"</code> (define above in the
<code>lightswitch_model.yaml</code> file).<li> Method <code>onMatch(...)</code>
has two input parameters:<ul><li>A single token from the [...]
diff --git a/blogs/short_term_memory.html b/blogs/short_term_memory.html
index d5e7730..20a1350 100644
--- a/blogs/short_term_memory.html
+++ b/blogs/short_term_memory.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/cheat-sheet.html b/cheat-sheet.html
index d730226..eee76de 100644
--- a/cheat-sheet.html
+++ b/cheat-sheet.html
@@ -15,12 +15,12 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
- $ unzip -q apache-nlpcraft-incubating-0.7.3.zip
- $ cd apache-nlpcraft-incubating-0.7.3
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+ $ unzip -q apache-nlpcraft-incubating-0.7.4.zip
+ $ cd apache-nlpcraft-incubating-0.7.4
$ mvn clean package -DskipTests
- </pre><p> Built JARs and Javadoc will be located in
<code>target</code> sub-folder.</p></div><div class="tab-pane fade show"
id="nav-install-bin" role="tabpanel"><p></p><p> <a
href="/download.html#zip">Download</a> latest (<code><b>0.7.3</b></code>)
binary release.</p><pre class="brush: bash">
- $ unzip -q apache-nlpcraft-incubating-bin-0.7.3.zip
+ </pre><p> Built JARs and Javadoc will be located in
<code>target</code> sub-folder.</p></div><div class="tab-pane fade show"
id="nav-install-bin" role="tabpanel"><p></p><p> <a
href="/download.html#zip">Download</a> latest (<code><b>0.7.4</b></code>)
binary release.</p><pre class="brush: bash">
+ $ unzip -q apache-nlpcraft-incubating-bin-0.7.4.zip
</pre></div><div class="tab-pane fade show"
id="nav-install-github" role="tabpanel"><pre class="brush: bash">
$ git clone
https://github.com/apache/incubator-nlpcraft.git
$ mvn clean package
@@ -28,27 +28,27 @@
<dependency>
<groupId>org.apache.nlpcraft</groupId>
<artifactId>nlpcraft</artifactId>
- <version>0.7.3</version>
+ <version>0.7.4</version>
</dependency>
</pre><p> <b>NOTE:</b> to get <a
href="/tools/script.html">NLPCraft CLI script</a> you still need to download <a
href="/download.html#zip">binary</a> ZIP or <a
href="/download.html#build">build</a> from <a
href="/download.html#src">source</a>.</p></div><div class="tab-pane fade"
id="nav-install-grape" role="tabpanel"><pre class="brush: java">
- @Grab ('org.apache.nlpcraft:nlpcraft:0.7.3')
+ @Grab ('org.apache.nlpcraft:nlpcraft:0.7.4')
</pre><p> <b>NOTE:</b> to get <a
href="/tools/script.html">NLPCraft CLI script</a> you still need to download <a
href="/download.html#zip">binary</a> ZIP or <a
href="/download.html#build">build</a> from <a
href="/download.html#src">source</a>.</p></div><div class="tab-pane fade"
id="nav-install-gradle" role="tabpanel"><pre class="brush: java">
dependencies {
- runtime group: 'org.apache.nlpcraft', name:
'nlpcraft', version: '0.7.3'
+ runtime group: 'org.apache.nlpcraft', name:
'nlpcraft', version: '0.7.4'
}
</pre><p> <b>NOTE:</b> to get <a
href="/tools/script.html">NLPCraft CLI script</a> you still need to download <a
href="/download.html#zip">binary</a> ZIP or <a
href="/download.html#build">build</a> from <a
href="/download.html#src">source</a>.</p></div><div class="tab-pane fade"
id="nav-install-sbt" role="tabpanel"><pre class="brush: scala">
- libraryDependencies += "org.apache.nlpcraft" % "nlpcraft"
% "0.7.3"
+ libraryDependencies += "org.apache.nlpcraft" % "nlpcraft"
% "0.7.4"
</pre><p> <b>NOTE:</b> to get <a
href="/tools/script.html">NLPCraft CLI script</a> you still need to download <a
href="/download.html#zip">binary</a> ZIP or <a
href="/download.html#build">build</a> from <a
href="/download.html#src">source</a>.</p></div></div></section><section
id="cs2"><h2 class="section-title">Start <span class="amp">&</span> Stop
REST Server</h2><nav><div class="nav nav-tabs" role="tablist"> <a
class="nav-item nav-link active" data-toggle="tab" href [...]
$ bin/nlpcraft.sh start-server # Start server.
</pre><pre class="brush: bash">
$ bin/nlpcraft.sh stop-server # Stop server.
$ bin/nlpcraft.sh stop # Stop both server and probe.
</pre><p> <b>NOTES:</b></p><ul><li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.<li> Run
<code>bin/nlpcraft.sh help --cmd=xxx</code> to get a full help on
<code>xxx</code> command.</ul></div><div class="tab-pane fade show"
id="nav-srv-class" role="tabpanel"><p></p><p> If using just executable
JAR:</p><pre class="brush: bash">
- $ java -Xms1024m -jar
apache-nlpcraft-incubating-0.7.3-all-deps.jar -server
+ $ java -Xms1024m -jar
apache-nlpcraft-incubating-0.7.4-all-deps.jar -server
</pre><p> If specifying additional classpath components and
need <code>-cp</code> parameter:</p><pre class="brush: bash">
- $ java -Xms1024m -cp
apache-nlpcraft-incubating-0.7.3-all-deps.jar org.apache.nlpcraft.NCStart
-server
- </pre><p> <b>NOTES:</b></p><ul><li> Make sure to provide
correct path to <code>apache-nlpcraft-incubating-0.7.3-all-deps.jar</code>
file.<li> Class <code>org.apache.nlpcraft.NCStart</code> is a common entry
point for all NLPCraft runtime components.<li> Class
<code>org.apache.nlpcraft.NCStart</code> should be used to star REST server
from IDE.</ul><p> Parameters:</p><dl><dt> <code>-server</code><dd>
<em>Mandatory</em> parameter to indicate that you are starting the REST s [...]
- $ docker run -m 8G -p 8081:8081 -p 8201:8201 -p 8202:8202
nlpcraftserver/server:0.7.3
+ $ java -Xms1024m -cp
apache-nlpcraft-incubating-0.7.4-all-deps.jar org.apache.nlpcraft.NCStart
-server
+ </pre><p> <b>NOTES:</b></p><ul><li> Make sure to provide
correct path to <code>apache-nlpcraft-incubating-0.7.4-all-deps.jar</code>
file.<li> Class <code>org.apache.nlpcraft.NCStart</code> is a common entry
point for all NLPCraft runtime components.<li> Class
<code>org.apache.nlpcraft.NCStart</code> should be used to star REST server
from IDE.</ul><p> Parameters:</p><dl><dt> <code>-server</code><dd>
<em>Mandatory</em> parameter to indicate that you are starting the REST s [...]
+ $ docker run -m 8G -p 8081:8081 -p 8201:8201 -p 8202:8202
nlpcraftserver/server:0.7.4
</pre></div></div></section><section id="cs3"><h2
class="section-title">Start <span class="amp">&</span> Stop
Probe</h2><nav><div class="nav nav-tabs" role="tablist"> <a class="nav-item
nav-link active" data-toggle="tab" href="#nav-probe-script" role="tab"
aria-controls="nav-home" aria-selected="true">NLPCraft CLI</a> <a
class="nav-item nav-link" data-toggle="tab" href="#nav-probe-class" role="tab"
aria-controls="nav-home" aria-selected="true">Java Class</a></div></na [...]
$ bin/nlpcraft.sh start-probe # Start probe with default
config.
$ bin/nlpcraft.sh start-probe --cfg=~/myapp/nlpcraft.conf
--mdls=my.package.Model --cp=~/myapp/target/classes --jmvOpts="-ea -Xms2048m"
--timeoutMins=5
@@ -56,14 +56,14 @@
$ bin/nlpcraft.sh stop-probe # Stop probe.
$ bin/nlpcraft.sh stop # Stop server and probe.
</pre><p> <b>NOTES:</b></p><ul><li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.<li> Run
<code>bin/nlpcraft.sh help --cmd=xxx</code> to get a full help on
<code>xxx</code> command.</ul></div><div class="tab-pane fade show"
id="nav-probe-class" role="tabpanel"><p></p><p> If using just executable
JAR:</p><pre class="brush: bash">
- $ java -jar apache-nlpcraft-incubating-0.7.3-all-deps.jar
-probe
+ $ java -jar apache-nlpcraft-incubating-0.7.4-all-deps.jar
-probe
</pre><p> If specifying additional classpath components and
need <code>-cp</code> parameter:</p><pre class="brush: bash">
- java -cp
apache-nlpcraft-incubating-0.7.3-all-deps.jar:/my/project/classes
org.apache.nlpcraft.NCStart -probe -config=/my/project/probe.conf
- </pre><p> <b>NOTES:</b></p><ul><li> <code>/my/project</code>
directory contains user-defined model implementation<li> Make sure to provide
correct path to <code>apache-nlpcraft-incubating-0.7.3-all-deps.jar</code>
file.<li> Class <code>org.apache.nlpcraft.NCStart</code> is a common entry
point for all NLPCraft runtime components.<li> Class
<code>org.apache.nlpcraft.NCStart</code> should be used to star data probe from
IDE.</ul><p> Parameters:</p><dl><dt> <code>-probe</cod [...]
+ java -cp
apache-nlpcraft-incubating-0.7.4-all-deps.jar:/my/project/classes
org.apache.nlpcraft.NCStart -probe -config=/my/project/probe.conf
+ </pre><p> <b>NOTES:</b></p><ul><li> <code>/my/project</code>
directory contains user-defined model implementation<li> Make sure to provide
correct path to <code>apache-nlpcraft-incubating-0.7.4-all-deps.jar</code>
file.<li> Class <code>org.apache.nlpcraft.NCStart</code> is a common entry
point for all NLPCraft runtime components.<li> Class
<code>org.apache.nlpcraft.NCStart</code> should be used to star data probe from
IDE.</ul><p> Parameters:</p><dl><dt> <code>-probe</cod [...]
$ bin/nlpcraft.sh test-model # All default parameters.
$ bin/nlpcraft.sh test-model --mdls=my.package.Model
--cp=~/myapp/target/classes --jmvOpts="-ea -Xms2048m"
</pre><p> <b>NOTES:</b></p><ul><li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.<li> Run
<code>bin/nlpcraft.sh help --cmd=test-model</code> to get a full help on this
command.</ul></div><div class="tab-pane fade show" id="nav-class"
role="tabpanel"><pre class="brush: bash">
- java -cp apache-nlpcraft-incubating-0.7.3-all-deps.jar
-DNLPCRAFT_TEST_MODELS=my.package.Model
org.apache.nlpcraft.model.tools.test.NCTestAutoModelValidator
+ java -cp apache-nlpcraft-incubating-0.7.4-all-deps.jar
-DNLPCRAFT_TEST_MODELS=my.package.Model
org.apache.nlpcraft.model.tools.test.NCTestAutoModelValidator
</pre><p> <b>NOTES:</b></p><ul><li> Make sure to add necessary
classpath components.<li> <code>NLPCRAFT_TEST_MODELS</code> system property
that should contain comma separate list of the data model classes to test.<li>
You can also use
<code>org.apache.nlpcraft.model.tools.test.NCTestAutoModelValidator</code>
class directly to call it programmatically from the code or from
IDE.</ul></div></div></section><section id="cs5"><h2 class="section-title">New
Project Stub</h2><nav> [...]
$ bin/nlpcraft.sh gen-project -n=MyProject -l=scala -b=sbt
# Scala/SBT project stub.
$ bin/nlpcraft.sh gen-project -n=MyProject -l=kotlin
-p=com.mycompany.nlp -o # Kotlin/Maven project stub.
@@ -78,4 +78,4 @@
$ bin/nlpcraft.sh rest -p=signin -j='{"email":
"[email protected]", "passwd": "admin"}' # Linux/Unix/MacOS REST call.
$ bin/nlpcraft.cmd rest --path=signin --json='{\"email\":
\"[email protected]\", \"passwd\": \"admin\"}' # Window REST call.
- </pre><p> <b>NOTES:</b></p><ul><li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.<li> Run
<code>bin/nlpcraft.sh help --cmd=xxx</code> to get a full help on
<code>xxx</code> command.</ul></div></div></section></div><div class="col-md-2
third-column"><ul class="side-nav"><li class="side-nav-title">Quick Links<li>
<i class="f [...]
+ </pre><p> <b>NOTES:</b></p><ul><li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.<li> Run
<code>bin/nlpcraft.sh help --cmd=xxx</code> to get a full help on
<code>xxx</code> command.</ul></div></div></section></div><div class="col-md-2
third-column"><ul class="side-nav"><li class="side-nav-title">Quick Links<li>
<i class="f [...]
diff --git a/community.html b/community.html
index 8c5f850..b345550 100644
--- a/community.html
+++ b/community.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+------------+ +---------------+ +-----------------+
| | replica | | fork | |
| Apache Git | ==========> | GitHub Mirror | ---------> | John Doe's Fork |
@@ -36,4 +36,4 @@
</pre><li> Each time when you want to update your
local <code>master</code> do the following:<pre class="brush: bash">
git pull upstream
git checkout release
- </pre></ul><div class="bq info"><p><b>Branch
Naming in Forks</b></p><p> Note that you can use any naming scheme for the
branches in your local forks (i.e. you can work in <code>master</code> branch
in your local fork). However, when you up-merge from the GitHub mirror you need
to make sure to use <code>release</code> branch to get the latest
work-in-progress from the upstream.</p></div></ul><p>To make the
contribution:</p><ul><li> Fix or implement JIRA ticket [...]
+ </pre></ul><div class="bq info"><p><b>Branch
Naming in Forks</b></p><p> Note that you can use any naming scheme for the
branches in your local forks (i.e. you can work in <code>master</code> branch
in your local fork). However, when you up-merge from the GitHub mirror you need
to make sure to use <code>release</code> branch to get the latest
work-in-progress from the upstream.</p></div></ul><p>To make the
contribution:</p><ul><li> Fix or implement JIRA ticket [...]
diff --git a/data-model.html b/data-model.html
index ffaf6e9..f342b20 100644
--- a/data-model.html
+++ b/data-model.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
package org.apache.nlpcraft.examples.lightswitch
import org.apache.nlpcraft.model.{NCIntentTerm, _}
@@ -337,4 +337,4 @@ intents:
</pre><p> Few notes on token DSL syntax:</p><ul><li> This synonym
defines a composed named entity, i.e. named entity that consists of other named
entities. In our example, we utilize token <code>nlpcraft:city</code> along
with other basic synonym.<li> Token DSL expression always results in one and
only one token when matched, however, the synonym can have multiple token DSL
expressions.<li> Token DSL expression can have optional alias
(<code>[city]</code>) that can be used in oth [...]
{qual}param op value
func({qual}param) op value
- </pre><p> The <code>{qual}param</code> is the left side parameter and
it can have optional qualifier (<code>qual</code>). Qualifier allows to
reference participant tokens either by their ID or their DSL expression's alias
using dot-notation. For example:</p><table
class="gradient-table"><thead><tr><th>Qualifier<th>Description<tbody><tr><td>
<code><b>partId.</b>groups @@ 'my_grp'</code><td> There must be a participant
token (i.e. constituent token) with either token ID or alias of [...]
+ </pre><p> The <code>{qual}param</code> is the left side parameter and
it can have optional qualifier (<code>qual</code>). Qualifier allows to
reference participant tokens either by their ID or their DSL expression's alias
using dot-notation. For example:</p><table
class="gradient-table"><thead><tr><th>Qualifier<th>Description<tbody><tr><td>
<code><b>partId.</b>groups @@ 'my_grp'</code><td> There must be a participant
token (i.e. constituent token) with either token ID or alias of [...]
diff --git a/docs.html b/docs.html
index 1c1f001..1325a9c 100644
--- a/docs.html
+++ b/docs.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/download.html b/download.html
index 988b94b..fe858af 100644
--- a/download.html
+++ b/download.html
@@ -15,37 +15,37 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
- $ unzip -q apache-nlpcraft-incubating-0.7.3.zip
- $ cd apache-nlpcraft-incubating-0.7.3
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+ $ unzip -q apache-nlpcraft-incubating-0.7.4.zip
+ $ cd apache-nlpcraft-incubating-0.7.4
</pre><b>Build NLPCraft:</b><pre class="brush: bash">
$ mvn clean package -DskipTests
</pre><p> Built JARs and Javadoc will be located in
<code>target</code> sub-folder.</p></section><section id="verification"><h2
class="section-title">Release Verification</h2><p> We highly recommend to
verify the integrity and authenticity of the ZIP archive by comparing
cryptographic signatures. Following instructions assume binary release on Mac
OS/Linux environment but the verification steps are similar for Windows.</p><h3
class="section-sub-title">Mac OS</h3><nav><div cla [...]
# Run these two commands and compare generated hashes:
- $ openssl dgst -sha256 apache-nlpcraft-incubating-0.7.3.zip
- $ cat apache-nlpcraft-incubating-0.7.3.zip.sha256
+ $ openssl dgst -sha256 apache-nlpcraft-incubating-0.7.4.zip
+ $ cat apache-nlpcraft-incubating-0.7.4.zip.sha256
</pre></div><div class="tab-pane fade show" id="nav-macos-pgp"
role="tabpanel"><pre class="brush: plain, highlight: [2]">
# NOTE: make sure to have GPGTools (gpgtools.org)
installed.
- $ gpg --verify apache-nlpcraft-incubating-0.7.3.zip.asc
apache-nlpcraft-incubating-0.7.3.zip
+ $ gpg --verify apache-nlpcraft-incubating-0.7.4.zip.asc
apache-nlpcraft-incubating-0.7.4.zip
</pre></div></div><h3
class="section-sub-title">Linux</h3><nav><div class="nav nav-tabs"
role="tablist"> <a class="nav-item nav-link active" data-toggle="tab"
href="#nav-linux-sha256" role="tab" aria-controls="nav-home"
aria-selected="true">SHA256</a> <a class="nav-item nav-link" data-toggle="tab"
href="#nav-linux-pgp" role="tab" aria-controls="nav-home"
aria-selected="true">PGP</a></div></nav><div class="tab-content"><div
class="tab-pane fade show active" id="nav-linux-s [...]
- $ sha256sum --check
apache-nlpcraft-incubating-0.7.3.zip.sha256
+ $ sha256sum --check
apache-nlpcraft-incubating-0.7.4.zip.sha256
</pre></div><div class="tab-pane fade show" id="nav-linux-pgp"
role="tabpanel"><pre class="brush: plain, highlight: [1]">
- $ gpg --verify apache-nlpcraft-incubating-0.7.3.zip.asc
apache-nlpcraft-incubating-0.7.3.zip
+ $ gpg --verify apache-nlpcraft-incubating-0.7.4.zip.asc
apache-nlpcraft-incubating-0.7.4.zip
</pre></div></div></section><section id="maven"><h2
class="section-title">Maven/Grape/SBT</h2><p> The easiest way to start using
NLPCraft is to add Maven dependency (Grape, SBT, etc.) to your project.
NLPCraft project consists of a single module.</p><nav><div class="nav nav-tabs"
role="tablist"> <a class="nav-item nav-link active" data-toggle="tab"
href="#nav-maven" role="tab" aria-controls="nav-home"
aria-selected="true">Maven <img src="/images/java2.png" height="20px" a [...]
<dependency>
<groupId>org.apache.nlpcraft</groupId>
<artifactId>nlpcraft</artifactId>
- <version>0.7.3</version>
+ <version>0.7.4</version>
</dependency>
</pre></div><div class="tab-pane fade" id="nav-grape"
role="tabpanel"><pre class="brush: java">
- @Grab ('org.apache.nlpcraft:nlpcraft:0.7.3')
+ @Grab ('org.apache.nlpcraft:nlpcraft:0.7.4')
</pre></div><div class="tab-pane fade" id="nav-gradle"
role="tabpanel"><pre class="brush: java">
dependencies {
- runtime group: 'org.apache.nlpcraft', name:
'nlpcraft', version: '0.7.3'
+ runtime group: 'org.apache.nlpcraft', name:
'nlpcraft', version: '0.7.4'
}
</pre></div><div class="tab-pane fade" id="nav-sbt"
role="tabpanel"><pre class="brush: scala">
- libraryDependencies += "org.apache.nlpcraft" % "nlpcraft"
% "0.7.3"
- </pre></div></div><div class="bq success"><p> <b>Latest
Version</b></p><p> <code>0.7.3</code> is the latest version. You can replace it
with a desired version.</p></div><p> See <a
href="/integrations.html#stanford">integration</a> section for additional
integration with Stanford CoreNLP library that is not part of the official
Apache NLPCraft release.</p></section><section id="github"><h2
class="section-title">GitHub <i class="fab fa-fw fa-github"></i></h2><p> If you
[...]
+ libraryDependencies += "org.apache.nlpcraft" % "nlpcraft"
% "0.7.4"
+ </pre></div></div><div class="bq success"><p> <b>Latest
Version</b></p><p> <code>0.7.4</code> is the latest version. You can replace it
with a desired version.</p></div><p> See <a
href="/integrations.html#stanford">integration</a> section for additional
integration with Stanford CoreNLP library that is not part of the official
Apache NLPCraft release.</p></section><section id="github"><h2
class="section-title">GitHub <i class="fab fa-fw fa-github"></i></h2><p> If you
[...]
$ git clone https://github.com/apache/incubator-nlpcraft.git
$ mvn clean package
</pre><div class="bq warn"><p> <b>GitHub vs. Apache
Release</b></p><p> Note that cloned GitHub repository is NOT an official Apache
release and it does not come with the guarantees made by the official <a
href="#src">Apache release</a> in terms of the licensing. GitHub repository may
include content not licensed under ASL 2.0. Only the official <a
href="#src">Apache source release</a> is guaranteed to be cleanly licensed
under ASL 2.0.</p></div></section><section id="java-cli [...]
@@ -62,4 +62,4 @@
}
</pre></div><div class="tab-pane fade"
id="nav-java-client-sbt" role="tabpanel"><pre class="brush: scala">
libraryDependencies += "org.apache.nlpcraft" %
"nlpcraft-java-client" % "0.7.2"
- </pre></div></div><div class="bq info"><p> <b>Latest
Version</b></p><p> <code>0.7.2</code> is the latest Java Client version. You
can replace it with a desired version.</p></div></section></div><div
class="col-md-2 third-column"><ul class="side-nav"><li
class="side-nav-title">On This Page<li><a href="#src">Source Release</a><li><a
href="#zip">Binary Release</a><li><a href="#build">Building Binaries</a><li><a
href="#verification">Verification</a><li><a href="#maven">Ma [...]
+ </pre></div></div><div class="bq info"><p> <b>Latest
Version</b></p><p> <code>0.7.2</code> is the latest Java Client version. You
can replace it with a desired version.</p></div></section></div><div
class="col-md-2 third-column"><ul class="side-nav"><li
class="side-nav-title">On This Page<li><a href="#src">Source Release</a><li><a
href="#zip">Binary Release</a><li><a href="#build">Building Binaries</a><li><a
href="#verification">Verification</a><li><a href="#maven">Ma [...]
diff --git a/examples/alarm_clock.html b/examples/alarm_clock.html
index d4244a4..ccb6923 100644
--- a/examples/alarm_clock.html
+++ b/examples/alarm_clock.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
$ bin/nlpcraft.sh gen-project --baseName=AlarmClock
--outputDir=~ --pkgName=demo --mdlType=json
</pre><p> <b>NOTES:</b></p><ul><li> New project created in
<code>/home/AlarmClock</code> directory.<li> <code>gen-project</code> command
defaults to Java and Maven as its built tool.<li> Run <code>bin/nlpcraft.sh
help --cmd=gen-project</code> to get a full help on <code>gen-project</code>
command.<li> <a href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab [...]
{
@@ -138,4 +138,4 @@ public class AlarmClock extends NCModelFileAdapter {
$ bin/nlpcraft.sh start-server
</pre></div><div class="tab-pane fade show" id="nav-srv-out"
role="tabpanel"><p></p><p> <img class="img-fluid" alt=""
src="/images/server-fig1.png"></p></div></div><p> <b>NOTES:</b></p><ul><li> <i
style="color: #F39C12" class="fa fa-exclamation-triangle"></i> REST server is a
"fire-and-forget" component that you generally needs to start only once.<li>
Run <code>bin/nlpcraft.sh help --cmd=start-server</code> to get a full help on
this command.<li> <a href="/tools/script.ht [...]
$ bin/nlpcraft.sh test-model --cp=~/AlarmClock/target/classes
--mdls=demo.AlarmClock
- </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.</ul><p>
Look at the output of this command and you will see the test results for all
our sample utterances:</p><p> <img style="max-width: 667px !important; [...]
+ </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.</ul><p>
Look at the output of this command and you will see the test results for all
our sample utterances:</p><p> <img style="max-width: 667px !important; [...]
diff --git a/examples/light_switch.html b/examples/light_switch.html
index a0b9e09..c478161 100644
--- a/examples/light_switch.html
+++ b/examples/light_switch.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
$ bin/nlpcraft.sh gen-project --baseName=LightSwitch
--outputDir=~ --pkgName=demo --lang=scala
</pre><p> <b>NOTES:</b></p><ul><li> New project created in
<code>/home/LightSwitch</code> directory.<li> <code>gen-project</code> command
defaults to Java and Maven as its built tool.<li> Run <code>bin/nlpcraft.sh
help --cmd=gen-project</code> to get a full help on <code>gen-project</code>
command.<li> <a href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fa [...]
id: "nlpcraft.lightswitch.ex"
@@ -100,4 +100,4 @@ class LightSwitch extends
NCModelFileAdapter("light_switch.yaml") {
$ bin/nlpcraft.sh start-server
</pre></div><div class="tab-pane fade show" id="nav-srv-out"
role="tabpanel"><p></p><p> <img class="img-fluid" alt=""
src="/images/server-fig1.png"></p></div></div><p> <b>NOTES:</b></p><ul><li> <i
style="color: #F39C12" class="fa fa-exclamation-triangle"></i> REST server is a
"fore-and-forget" component that you generally need to start only once.<li> Run
<code>bin/nlpcraft.sh help --cmd=start-server</code> to get a full help on this
command.<li> <a href="/tools/script.htm [...]
$ bin/nlpcraft.sh test-model --cp=~/LightSwitch/target/classes
--mdls=demo.LightSwitch
- </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.</ul><p>
Look at the output of this command and you will see the test results for all
our sample utterances:</p><p> <img style="max-width: 928px !important; [...]
+ </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.</ul><p>
Look at the output of this command and you will see the test results for all
our sample utterances:</p><p> <img style="max-width: 928px !important; [...]
diff --git a/examples/sql_model.html b/examples/sql_model.html
index 82a6d60..6d2445b 100644
--- a/examples/sql_model.html
+++ b/examples/sql_model.html
@@ -15,11 +15,11 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
$ cd ~/SqlModel
$ mvn clean package
</pre><p> At this stage we have our project built and we are ready to
start testing.</p></section><section id="start_server"><h3
class="section-title">Start Server</h3><p> Run the following command to start
local REST server, if it hasn't been started already, from the NLPCraft
installation directory:</p><nav><div class="nav nav-tabs" role="tablist"> <a
class="nav-item nav-link active" data-toggle="tab" href="#nav-srv-cmd"
role="tab" aria-controls="nav-home" aria-selected="true"> [...]
$ bin/nlpcraft.sh start-server
</pre></div><div class="tab-pane fade show" id="nav-srv-out"
role="tabpanel"><p></p><p> <img class="img-fluid" alt=""
src="/images/server-fig1.png"></p></div></div><p> <b>NOTES:</b></p><ul><li> <i
style="color: #F39C12" class="fa fa-exclamation-triangle"></i> REST server is a
"fore-and-forget" component that you generally need to start only once.<li> Run
<code>bin/nlpcraft.sh help --cmd=start-server</code> to get a full help on this
command.<li> <a href="/tools/script.htm [...]
$ bin/nlpcraft.sh test-model --cp=~/sql/target/classes
--mdls=demo.SqlModel
- </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw
fa-windows"></i>.</ul></section><section id="rinse"><h2
class="section-title">Rinse <span class="amp">&</span> Repeat</h2><p>
Typical development cycle consists of:</p>< [...]
+ </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw
fa-windows"></i>.</ul></section><section id="rinse"><h2
class="section-title">Rinse <span class="amp">&</span> Repeat</h2><p>
Typical development cycle consists of:</p>< [...]
diff --git a/examples/weather_bot.html b/examples/weather_bot.html
index 81c158d..4be6d95 100644
--- a/examples/weather_bot.html
+++ b/examples/weather_bot.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
$ bin/nlpcraft.sh gen-project --baseName=Weather
--outputDir=~ --pkgName=demo --mdlType=json
</pre><p> <b>NOTES:</b></p><ul><li> New project created in
<code>/home/Weather</code> directory.<li> <code>gen-project</code> command
defaults to Java and Maven as its built tool.<li> Run <code>bin/nlpcraft.sh
help --cmd=gen-project</code> to get a full help on <code>gen-project</code>
command.<li> <a href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa [...]
{
@@ -216,4 +216,4 @@ public class Weather extends NCModelFileAdapter {
$ bin/nlpcraft.sh start-server
</pre></div><div class="tab-pane fade show" id="nav-srv-out"
role="tabpanel"><p></p><p> <img class="img-fluid" alt=""
src="/images/server-fig1.png"></p></div></div><p> <b>NOTES:</b></p><ul><li> <i
style="color: #F39C12" class="fa fa-exclamation-triangle"></i> REST server is a
"fore-and-forget" component that you generally need to start only once.<li> Run
<code>bin/nlpcraft.sh help --cmd=start-server</code> to get a full help on this
command.<li> <a href="/tools/script.htm [...]
$ bin/nlpcraft.sh test-model --cp=~/Weather/target/classes
--mdls=demo.Weather
- </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.</ul><p>
Look at the output of this command and you will see the test results for all
our sample utterances:</p><p> <img style="max-width: 871px !important; [...]
+ </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.</ul><p>
Look at the output of this command and you will see the test results for all
our sample utterances:</p><p> <img style="max-width: 871px !important; [...]
diff --git a/feed.xml b/feed.xml
index 5aa7fcc..3f53e3f 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="4.1.1">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>2021-01-23T20:57:37-08: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="4.1.1">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>2021-01-29T20:06:59-08: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/first-example.html b/first-example.html
index 6800cba..e263f55 100644
--- a/first-example.html
+++ b/first-example.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
$ bin/nlpcraft.sh gen-project --baseName=LightSwitch
--outputDir=~ --lang=scala --pkgName=demo
</pre></div><div class="tab-pane fade show" id="nav-out"
role="tabpanel"><p></p><p> <img class="img-fluid" alt=""
src="/images/first_example_fig1.png"></p></div></div><p>
<b>NOTES:</b></p><ul><li> New project created in <code>/home/LightSwitch</code>
directory.<li> <code>gen-project</code> command defaults to Maven as its built
tool.<li> Run <code>bin/nlpcraft.sh help --cmd=gen-project</code> to get a full
help on <code>gen-project</code> command.<li> <a href="/tools/scri [...]
id: "nlpcraft.lightswitch.ex"
@@ -191,4 +191,4 @@ class LightSwitchKotlinModel :
NCModelFileAdapter("lightswitch_model.yaml") {
$ bin/nlpcraft.sh start-server
</pre></div><div class="tab-pane fade show" id="nav-srv-out"
role="tabpanel"><p></p><p> <img class="img-fluid" alt=""
src="/images/first_example_fig2.png"></p></div></div><p>
<b>NOTES:</b></p><ul><li> REST server is a "fore-and-forget" component that you
generally need to start only once.<li> Run <code>bin/nlpcraft.sh help
--cmd=start-server</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code [...]
$ bin/nlpcraft.sh test-model --cp=~/LightSwitch/target/classes
--mdls=demo.LightSwitch
- </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.</ul><p>
Look at the output of this command and you will see the test results for all
our sample utterances:</p><p> <img style="max-width: 910px !important; [...]
+ </pre><p> <b>NOTES:</b></p><ul><li> Run <code>bin/nlpcraft.sh help
--cmd=test-model</code> to get a full help on this command.<li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.</ul><p>
Look at the output of this command and you will see the test results for all
our sample utterances:</p><p> <img style="max-width: 910px !important; [...]
diff --git a/getting-started.html b/getting-started.html
index d3190fc..5360685 100644
--- a/getting-started.html
+++ b/getting-started.html
@@ -15,9 +15,9 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
$ bin/nlpcraft.sh start-server
$ bin/nlpcraft.sh start-probe
</pre></div><div class="tab-pane fade show" id="nav-srv-start"
role="tabpanel"><p></p><p> <img class="img-fluid"
src="/images/getting_started_fig1.png" alt=""></p></div><div class="tab-pane
fade show" id="nav-probe-start" role="tabpanel"><p></p><p> <img
class="img-fluid" src="/images/getting_started_fig2.png"
alt=""></p></div></div><p> At this point you have both the data probe and the
REST server started and connected to each other.</p></section><section
id="querying"><h [...]
$ bin/nlpcraft.sh
- </pre></div><div class="tab-pane fade show" id="nav-repl-out"
role="tabpanel"><p></p><p> <img class="img-fluid"
src="/images/getting_started_fig3.png" alt=""></p></div></div><p>
<b>NOTES:</b></p><ul><li> Note that when you start NLPCraft CLI it
automatically detects the REST server and data probe we have started in the
previous step.<li> You can see the status of the REST server and data probe in
the prompt and you can always use <code>info</code> command to see a full in
[...]
+ </pre></div><div class="tab-pane fade show" id="nav-repl-out"
role="tabpanel"><p></p><p> <img class="img-fluid"
src="/images/getting_started_fig3.png" alt=""></p></div></div><p>
<b>NOTES:</b></p><ul><li> Note that when you start NLPCraft CLI it
automatically detects the REST server and data probe we have started in the
previous step.<li> You can see the status of the REST server and data probe in
the prompt and you can always use <code>info</code> command to see a full in
[...]
diff --git a/index.html b/index.html
index 278d7ae..70c2dfd 100644
--- a/index.html
+++ b/index.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/installation.html b/installation.html
index fd8931b..3b10354 100644
--- a/installation.html
+++ b/installation.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/integrations.html b/integrations.html
index e9302ff..e597543 100644
--- a/integrations.html
+++ b/integrations.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-corenlp</artifactId>
@@ -24,19 +24,19 @@
<dependency>
<groupId>org.apache.nlpcraft</groupId>
<artifactId>nlpcraft-stanford</artifactId>
- <version>0.7.3</version>
+ <version>0.7.4</version>
</dependency>
</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')
- @Grab ('org.apache.nlpcraft:nlpcraft-stanford:0.7.3')
+ @Grab ('org.apache.nlpcraft:nlpcraft-stanford:0.7.4')
</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'
- runtime group: 'org.apache.nlpcraft', name:
'nlpcraft-stanford', version: '0.7.3'
+ runtime group: 'org.apache.nlpcraft', name:
'nlpcraft-stanford', version: '0.7.4'
}
</pre></div><div class="tab-pane fade"
id="nav-stanfordnlp-sbt" role="tabpanel"><pre class="brush: scala">
libraryDependencies += "edu.stanford.nlp" %
"stanford-corenlp" % "3.9.2"
- libraryDependencies += "org.apache.nlpcraft" %
"nlpcraft-stanford" % "0.7.3"
+ libraryDependencies += "org.apache.nlpcraft" %
"nlpcraft-stanford" % "0.7.4"
</pre></div></div><div class="bq warn"> Make sure to change
Stanford CoreNLP <code>3.9.2</code> version to the latest or required
one.</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> [...]
import urllib.parse
@@ -140,4 +140,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><section> <img id="gridgain" class="img-title"
src="/images/gridgain-logo.png" width="200px" alt=""><p> NLPCraf [...]
+ </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/intent-matching.html b/intent-matching.html
index 82215c5..654d7df 100644
--- a/intent-matching.html
+++ b/intent-matching.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
@NCIntent("intent=act term(act)={groups @@ 'act'}
term(loc)={trim(id) == 'ls:loc'}*")
@NCIntentSample(Array(
"Turn the lights off in the entire house.",
@@ -108,4 +108,4 @@
flow='id1 id2'
term={id == 'mytok' && signum(~score['best']) != -1}
term={(groups @@ 'actors' || groups @@ 'owners') &&
size(partAlias.~text) > 10}
- </pre><p><b>NOTES:</b></p><ul><li> Intent has ID <code>id2</code>.<li>
Intent has dialog flow pattern: <code>'id1 id2'</code>. It expect sequence of
intents <code>id1</code> and <code>id2</code> somewhere in the history of
previously matched intents in the course of the current conversation.<li>
Intent has two non-conversational terms. Both terms have to be present only
once (their implicit quantifiers are <code>[1,1]</code>).<li> First term should
be a token with ID <code>mytok< [...]
+ </pre><p><b>NOTES:</b></p><ul><li> Intent has ID <code>id2</code>.<li>
Intent has dialog flow pattern: <code>'id1 id2'</code>. It expect sequence of
intents <code>id1</code> and <code>id2</code> somewhere in the history of
previously matched intents in the course of the current conversation.<li>
Intent has two non-conversational terms. Both terms have to be present only
once (their implicit quantifiers are <code>[1,1]</code>).<li> First term should
be a token with ID <code>mytok< [...]
diff --git a/metrics-and-tracing.html b/metrics-and-tracing.html
index 91d297b..ffbe739 100644
--- a/metrics-and-tracing.html
+++ b/metrics-and-tracing.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
nlpcraft {
server {
...
@@ -37,4 +37,4 @@ nlpcraft {
...
}
}
- </pre><p> Just like with server exporters, each probe exporter has
default configuration that can be overridden via <a
href="server-and-probe.html">configuration</a> properties or environment
variables. Note also that all built-in <b>trace exporters</b> use "always"
sampling by default that is suitable only for demo or development purposes. For
production usage you will need to modify the exporter to provide more effective
<a target=_ href="https://opencensus.io/tracing/sampling/ [...]
+ </pre><p> Just like with server exporters, each probe exporter has
default configuration that can be overridden via <a
href="server-and-probe.html">configuration</a> properties or environment
variables. Note also that all built-in <b>trace exporters</b> use "always"
sampling by default that is suitable only for demo or development purposes. For
production usage you will need to modify the exporter to provide more effective
<a target=_ href="https://opencensus.io/tracing/sampling/ [...]
diff --git a/relnotes/release-notes-0.5.0.html
b/relnotes/release-notes-0.5.0.html
index b2c1efb..acd1a09 100644
--- a/relnotes/release-notes-0.5.0.html
+++ b/relnotes/release-notes-0.5.0.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/relnotes/release-notes-0.6.2.html
b/relnotes/release-notes-0.6.2.html
index 6bfaf65..5c5d2a7 100644
--- a/relnotes/release-notes-0.6.2.html
+++ b/relnotes/release-notes-0.6.2.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/relnotes/release-notes-0.7.0.html
b/relnotes/release-notes-0.7.0.html
index 9d5a3ad..4303996 100644
--- a/relnotes/release-notes-0.7.0.html
+++ b/relnotes/release-notes-0.7.0.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/relnotes/release-notes-0.7.1.html
b/relnotes/release-notes-0.7.1.html
index fb732f4..2e3e48a 100644
--- a/relnotes/release-notes-0.7.1.html
+++ b/relnotes/release-notes-0.7.1.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/relnotes/release-notes-0.7.2.html
b/relnotes/release-notes-0.7.2.html
index ccbe0e3..de3d624 100644
--- a/relnotes/release-notes-0.7.2.html
+++ b/relnotes/release-notes-0.7.2.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/relnotes/release-notes-0.7.3.html
b/relnotes/release-notes-0.7.3.html
index a610756..0656cf1 100644
--- a/relnotes/release-notes-0.7.3.html
+++ b/relnotes/release-notes-0.7.3.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/server-and-probe.html b/server-and-probe.html
index 0214789..90c302b 100644
--- a/server-and-probe.html
+++ b/server-and-probe.html
@@ -15,33 +15,37 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
$ bin/nlpcraft.sh start-server
</pre><p> <b>NOTES:</b></p><ul><li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.<li> Run
<code>bin/nlpcraft.sh help --cmd=start-server</code> to get a full help on this
command.</ul></div><div class="tab-pane fade show" id="nav-srv-class"
role="tabpanel"><p></p><p> If using just executable JAR:</p><pre class="brush:
bash">
- $ java -Xms1024m -jar
apache-nlpcraft-incubating-0.7.3-all-deps.jar -server
+ $ java -Xms1024m -jar
apache-nlpcraft-incubating-0.7.4-all-deps.jar -server
</pre><p> If specifying additional classpath components and
need <code>-cp</code> parameter:</p><pre class="brush: bash">
- $ java -Xms1024m -cp
apache-nlpcraft-incubating-0.7.3-all-deps.jar org.apache.nlpcraft.NCStart
-server
- </pre><p> <b>NOTES:</b></p><ul><li> Make sure to provide
correct path to <code>apache-nlpcraft-incubating-0.7.3-all-deps.jar</code>
file.<li> Class <code>org.apache.nlpcraft.NCStart</code> is a common entry
point for all NLPCraft runtime components.<li> Class
<code>org.apache.nlpcraft.NCStart</code> should be used to star REST server
from IDE.</ul><p> Parameters:</p><dl><dt> <code>-server</code><dd>
<em>Mandatory</em> parameter to indicate that you are starting the REST s [...]
- $ docker run -m 8G -p 8081:8081 -p 8201:8201 -p 8202:8202
nlpcraftserver/server:0.7.3
+ $ java -Xms1024m -cp
apache-nlpcraft-incubating-0.7.4-all-deps.jar org.apache.nlpcraft.NCStart
-server
+ </pre><p> <b>NOTES:</b></p><ul><li> Make sure to provide
correct path to <code>apache-nlpcraft-incubating-0.7.4-all-deps.jar</code>
file.<li> Class <code>org.apache.nlpcraft.NCStart</code> is a common entry
point for all NLPCraft runtime components.<li> Class
<code>org.apache.nlpcraft.NCStart</code> should be used to star REST server
from IDE.</ul><p> Parameters:</p><dl><dt> <code>-server</code><dd>
<em>Mandatory</em> parameter to indicate that you are starting the REST s [...]
+ $ docker run -m 8G -p 8081:8081 -p 8201:8201 -p 8202:8202
nlpcraftserver/server:0.7.4
</pre></div></div><h3 class="section-sub-title">JVM
Memory</h3><p> Make sure to allocate enough memory for server JVM using
<code>-Xms</code> JVM option, i.e. <code>-Xms1024m</code>. Many 3rd party NLP
engines like Stanford CoreNLP are very memory intensive and may require several
GBs of JVM heap allocated depending on the models used. Note that when server
JVM has insufficient heap memory the Apache Ignite may throw the following
warning logs:</p><pre class="brush: text">
Jul-22 13:27:56 [INFO ] ...
Jul-22 13:28:08 [WARN ] Possible too long JVM pause: 11364
milliseconds.
Jul-22 13:28:11 [INFO ] ...
</pre><p> <b>NOTES:</b></p><ul><li> <code>nlpcraft.{sh|cmd}</code>
script automatically uses <code>-Xms1024m</code> for <code>start-server</code>
command.</ul><p> The abnormally long GC pauses (over 5s) can be caused by the
excessive memory swapping performed by OS due to insufficient JVM heap
memory.</p><h3 class="section-sub-title">Apache Ignite 2.x and JDK 11</h3><p>
NLPCraft REST server uses Apache Ignite 2.x as its distributed in-memory
computing plane. Apache Ignite <a targ [...]
---add-exports=java.base/jdk.internal.misc=ALL-UNNAMED
---add-exports=java.base/sun.nio.ch=ALL-UNNAMED
---add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
---add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
---add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
+--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
+--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
+--add-opens=java.base/java.nio=ALL-UNNAMED
+--add-opens=java.base/java.io=ALL-UNNAMED
+--add-opens=java.base/java.util=ALL-UNNAMED
+--add-opens=java.base/java.lang=ALL-UNNAMED
+--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
+--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
+--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
--illegal-access=permit
</pre><p> <b>NOTES:</b></p><ul><li> <code>nlpcraft.{sh|cmd}</code>
script automatically uses these options for <code>start-server</code>
command.</ul></section><section id="probe"><h2 class="section-title">Data
Probe</h2><p> Data probes are used to deploy and host data mode, and can also
be started in several ways:</p><nav><div class="nav nav-tabs" role="tablist">
<a class="nav-item nav-link active" data-toggle="tab" href="#nav-probe-script"
role="tab" aria-controls="nav-home" ar [...]
$ bin/nlpcraft.sh start-probe
</pre><p> <b>NOTES:</b></p><ul><li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.<li> Run
<code>bin/nlpcraft.sh help --cmd=start-probe</code> to get a full help on this
command.</ul></div><div class="tab-pane fade show" id="nav-probe-class"
role="tabpanel"><p></p><p> If using just executable JAR:</p><pre class="brush:
bash">
- $ java -jar apache-nlpcraft-incubating-0.7.3-all-deps.jar
-probe
+ $ java -jar apache-nlpcraft-incubating-0.7.4-all-deps.jar
-probe
</pre><p> If specifying additional classpath components and
need <code>-cp</code> parameter:</p><pre class="brush: bash">
- java -cp
apache-nlpcraft-incubating-0.7.3-all-deps.jar:/my/project/classes
org.apache.nlpcraft.NCStart -probe -config=/my/project/probe.conf
- </pre><p> <b>NOTES:</b></p><ul><li> <code>/my/project</code>
directory contains user-defined model implementation<li> Make sure to provide
correct path to <code>apache-nlpcraft-incubating-0.7.3-all-deps.jar</code>
file.<li> Class <code>org.apache.nlpcraft.NCStart</code> is a common entry
point for all NLPCraft runtime components.<li> Class
<code>org.apache.nlpcraft.NCStart</code> should be used to star data probe from
IDE.</ul><p> Parameters:</p><dl><dt> <code>-probe</cod [...]
+ java -cp
apache-nlpcraft-incubating-0.7.4-all-deps.jar:/my/project/classes
org.apache.nlpcraft.NCStart -probe -config=/my/project/probe.conf
+ </pre><p> <b>NOTES:</b></p><ul><li> <code>/my/project</code>
directory contains user-defined model implementation<li> Make sure to provide
correct path to <code>apache-nlpcraft-incubating-0.7.4-all-deps.jar</code>
file.<li> Class <code>org.apache.nlpcraft.NCStart</code> is a common entry
point for all NLPCraft runtime components.<li> Class
<code>org.apache.nlpcraft.NCStart</code> should be used to star data probe from
IDE.</ul><p> Parameters:</p><dl><dt> <code>-probe</cod [...]
nlpcraft {
server {
...
@@ -69,7 +73,7 @@ nlpcraft {
}
}
}
- </pre><p> You can override these properties with the following
environment variables:</p><p>
<code>CONFIG_FORCE_<b>nlpcraft_server_rest_host</b>=1.2.3.4</code><br>
<code>CONFIG_FORCE_<b>nlpcraft_server_lifecycle</b>="org.nlp.Lifecycle1,
org.nlp.Lifecycle1"</code><br>
<code>CONFIG_FORCE_<b>nlpcraft_probe_models</b>="com.nlp.MyModel,
com.nlp.AnotherModel"</code></p><div class="bq info"> <b>Examples</b><p> Note
that all examples that come with NLPCraft have instructions that use env [...]
+ </pre><p> You can override these properties with the following
environment variables:</p><p>
<code>CONFIG_FORCE_<b>nlpcraft_server_rest_host</b>=1.2.3.4</code><br>
<code>CONFIG_FORCE_<b>nlpcraft_server_lifecycle</b>="org.nlp.Lifecycle1,
org.nlp.Lifecycle1"</code><br>
<code>CONFIG_FORCE_<b>nlpcraft_probe_models</b>="com.nlp.MyModel,
com.nlp.AnotherModel"</code></p><div class="bq info"> <b>Examples</b><p> Note
that all examples that come with NLPCraft have instructions that use env [...]
<plugin>
<groupId>com.bazaarvoice.maven.plugins</groupId>
<artifactId>process-exec-maven-plugin</artifactId>
@@ -90,11 +94,15 @@ nlpcraft {
<argument>java</argument>
<argument>-Xmx4G</argument>
<argument>-Xms4G</argument>
-
<argument>--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED</argument>
-
<argument>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</argument>
-
<argument>--add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED</argument>
-
<argument>--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED</argument>
-
<argument>--add-exports=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED</argument>
+
<argument>--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED</argument>
+
<argument>--add-opens=java.base/sun.nio.ch=ALL-UNNAMED</argument>
+
<argument>--add-opens=java.base/java.nio=ALL-UNNAMED</argument>
+
<argument>--add-opens=java.base/java.io=ALL-UNNAMED</argument>
+
<argument>--add-opens=java.base/java.util=ALL-UNNAMED</argument>
+
<argument>--add-opens=java.base/java.lang=ALL-UNNAMED</argument>
+
<argument>--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED</argument>
+
<argument>--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED</argument>
+
<argument>--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED</argument>
<argument>--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED</argument>
<argument>--illegal-access=permit</argument>
<argument>-DNLPCRAFT_ANSI_COLOR_DISABLED=true</argument>
@@ -114,4 +122,4 @@ nlpcraft {
</execution>
</executions>
</plugin>
- </pre><p> <b>NOTES</b>:</p><ul><li> On line 14 we specify the URL
endpoint to check whether or not our server is online. We use
<code>/health</code> localhost REST call for that.<li> On line 16 we redirect
the output from server to a dedicated file to <b>avoid interleaving</b> log
from server and log from data probe in the same console (where we are running
the Maven build from). Such interleaving will make the combined log unreadable
and can cause output problem for the console [...]
+ </pre><p> <b>NOTES</b>:</p><ul><li> On line 14 we specify the URL
endpoint to check whether or not our server is online. We use
<code>/health</code> localhost REST call for that.<li> On line 16 we redirect
the output from server to a dedicated file to <b>avoid interleaving</b> log
from server and log from data probe in the same console (where we are running
the Maven build from). Such interleaving will make the combined log unreadable
and can cause output problem for the console [...]
diff --git a/tools/embedded_probe.html b/tools/embedded_probe.html
index 7b2bf97..c09ad22 100644
--- a/tools/embedded_probe.html
+++ b/tools/embedded_probe.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
public class AlarmTest {
private NCTestClient cli;
@@ -44,4 +44,4 @@ public class AlarmTest {
assertTrue(cli.ask("Set my alarm for 30s").isOk());
}
}
- </pre><p> <b>NOTES:</b></p><ul><li> Lines 6 and 18 show the embedded
data probe start and stop as it's used in the unit tests.</ul><p> It's
important to note that there are number of inherent limitations associated with
embedded probe:</p><ul><li> Embedded probe is only available for JVM-based
applications (and can be used with any JVM languages).<li> There can be only
one embedded probe per JVM.<li> Once data probe is stopped and cannot be
re-started again in the same JVM.<li> E [...]
+ </pre><p> <b>NOTES:</b></p><ul><li> Lines 6 and 18 show the embedded
data probe start and stop as it's used in the unit tests.</ul><p> It's
important to note that there are number of inherent limitations associated with
embedded probe:</p><ul><li> Embedded probe is only available for JVM-based
applications (and can be used with any JVM languages).<li> There can be only
one embedded probe per JVM.<li> Once data probe is stopped and cannot be
re-started again in the same JVM.<li> E [...]
diff --git a/tools/script.html b/tools/script.html
index ae02c28..cb199a4 100644
--- a/tools/script.html
+++ b/tools/script.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
> $git pull # Runs 'git pull' in the current directory.
> $vi /home/myproject/pom.xml # Edit 'pom.xml' using vi.
> $emacs /home/myproject/MyModel.scala # Edit 'MyModel.scala'
using emacs.
@@ -25,4 +25,4 @@
$ bin/nlpcraft.sh no-ansi no-logo signin [email protected]
--passwd=admin | tail -n +2 | jq -M '.acsTok' | tr -d '"'
</pre><p> ...and the access token is:</p><pre class="brush: bash">
bjok7yraypseyk86KgGae
- </pre><p> <b>NOTES:</b></p><ul><li> We use <code>no-ansi</code> and
<code>no-logo</code> special commands that clean up and simplify the output so
that it would be easier to parse the resulting JSON.<li> We use <code>tail -n
+2</code> Unix command to skip the 1st line of the output that contains HTTP
return code.<li> We use <a target=_blank
href="https://stedolan.github.io/jq/">jq</a> utility to parse JSON inline and
extract <code>acsTok</code> field.<li> We use <code>tr -d '"'</ [...]
+ </pre><p> <b>NOTES:</b></p><ul><li> We use <code>no-ansi</code> and
<code>no-logo</code> special commands that clean up and simplify the output so
that it would be easier to parse the resulting JSON.<li> We use <code>tail -n
+2</code> Unix command to skip the 1st line of the output that contains HTTP
return code.<li> We use <a target=_blank
href="https://stedolan.github.io/jq/">jq</a> utility to parse JSON inline and
extract <code>acsTok</code> field.<li> We use <code>tr -d '"'</ [...]
diff --git a/tools/sql_model_gen.html b/tools/sql_model_gen.html
index 3fba801..6026364 100644
--- a/tools/sql_model_gen.html
+++ b/tools/sql_model_gen.html
@@ -15,8 +15,8 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
$ bin/nlpcraft.sh gen-sql
--url=jdbc:postgresql://localhost:5432/mydb --driver=org.postgresql.Driver
--schema=public --out=model.json
</pre><p> <b>NOTES:</b></p><ul><li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.<li> Run
<code>bin/nlpcraft.sh help --cmd=gen-sql</code> to get a full help on this
command.</ul></div><div class="tab-pane fade show" id="nav-class"
role="tabpanel"><pre class="brush: bash">
- $ java -cp apache-nlpcraft-incubating-0.7.3-all-deps.jar
org.apache.nlpcraft.model.tools.sqlgen.NCSqlModelGenerator
- </pre><p> <b>NOTES:</b></p><ul><li> Run this class without
arguments to get a full help.<li> Use
<code>org.apache.nlpcraft.model.tools.sqlgen.NCSqlModelGenerator</code> class
directly to execute it from IDE or programmatically.</ul></div></div><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.h
[...]
+ $ java -cp apache-nlpcraft-incubating-0.7.4-all-deps.jar
org.apache.nlpcraft.model.tools.sqlgen.NCSqlModelGenerator
+ </pre><p> <b>NOTES:</b></p><ul><li> Run this class without
arguments to get a full help.<li> Use
<code>org.apache.nlpcraft.model.tools.sqlgen.NCSqlModelGenerator</code> class
directly to execute it from IDE or programmatically.</ul></div></div><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.h
[...]
diff --git a/tools/syn_tool.html b/tools/syn_tool.html
index 721ce39..231dce7 100644
--- a/tools/syn_tool.html
+++ b/tools/syn_tool.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
$ cd nlpcraft/src/main/python/ctxword
$ bin/install_dependencies.sh
</pre></div><div class="tab-pane fade show"
id="nav-win" role="tabpanel"><pre class="brush: plain">
@@ -95,4 +95,4 @@
"Model has too few (3) intents samples. It will negatively affect the
quality of suggestions. Try to increase overall sample count to at least 20."
]
}
- </pre><p> The result is structured as a list of proposed synonyms with
their corresponding scores for each model's element. You should analyse the
results for their fitness for your model and its existing synonyms. The tool
cannot guarantee that every suggested synonym is appropriate or valid - but it
gives a good "courtesy" check for potentially missing synonyms.</p><div
class="bq info"><p> <b>Run Periodically</b></p><p> It is a good idea to run
this tool periodically if you are [...]
+ </pre><p> The result is structured as a list of proposed synonyms with
their corresponding scores for each model's element. You should analyse the
results for their fitness for your model and its existing synonyms. The tool
cannot guarantee that every suggested synonym is appropriate or valid - but it
gives a good "courtesy" check for potentially missing synonyms.</p><div
class="bq info"><p> <b>Run Periodically</b></p><p> It is a good idea to run
this tool periodically if you are [...]
diff --git a/tools/test_framework.html b/tools/test_framework.html
index aa6b15b..7c05c54 100644
--- a/tools/test_framework.html
+++ b/tools/test_framework.html
@@ -15,7 +15,7 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
public class AlarmTest {
private NCTestClient cli;
@@ -62,5 +62,5 @@ public class AlarmModel extends NCModelFileAdapter {
</pre><p> Auto mode validator takes one or more model IDs (or class
names) and performs validation. Validation consists of starting an <a
href="/tools/embedded_probe.html">embedded probe</a> with a given model,
scanning for <code>@NCIntentSample</code> annotations and their corresponding
callback methods, submitting each sample input sentences from
<code>@NCIntentSample</code> annotation and checking that resulting intent
matches the intent the sample was attached to.</p><h3 clas [...]
$ bin/nlpcraft.sh test-model
</pre><p> <b>NOTES:</b></p><ul><li> <a
href="/tools/script.html">NLPCraft CLI</a> is available as
<code>nlpcraft.sh</code> for <i class="fab fa-fw fa-linux"></i> and
<code>nlpcraft.cmd</code> for <i class="fab fa-fw fa-windows"></i>.<li> Run
<code>bin/nlpcraft.sh help --cmd=test-model</code> to get a full help on this
command.</ul></div><div class="tab-pane fade show" id="nav-class"
role="tabpanel"><pre class="brush: bash">
- java -cp apache-nlpcraft-incubating-0.7.3-all-deps.jar
-DNLPCRAFT_TEST_MODELS=org.apache.nlpcraft.examples.alarm.AlarmModel
org.apache.nlpcraft.model.tools.test.NCTestAutoModelValidator
- </pre><p> <b>NOTES:</b></p><ul><li> Make sure to add necessary
classpath components.<li> <code>NLPCRAFT_TEST_MODELS</code> system property
that should contain comma separate list of the data model classes to test.<li>
You can also use
<code>org.apache.nlpcraft.model.tools.test.NCTestAutoModelValidator</code>
class directly to call it programmatically from the code or from
IDE.</ul></div></div><p> In the log output you should see the following
validation results:</p><figur [...]
+ java -cp apache-nlpcraft-incubating-0.7.4-all-deps.jar
-DNLPCRAFT_TEST_MODELS=org.apache.nlpcraft.examples.alarm.AlarmModel
org.apache.nlpcraft.model.tools.test.NCTestAutoModelValidator
+ </pre><p> <b>NOTES:</b></p><ul><li> Make sure to add necessary
classpath components.<li> <code>NLPCRAFT_TEST_MODELS</code> system property
that should contain comma separate list of the data model classes to test.<li>
You can also use
<code>org.apache.nlpcraft.model.tools.test.NCTestAutoModelValidator</code>
class directly to call it programmatically from the code or from
IDE.</ul></div></div><p> In the log output you should see the following
validation results:</p><figur [...]
diff --git a/use-cases.html b/use-cases.html
index 07001bd..c40232d 100644
--- a/use-cases.html
+++ b/use-cases.html
@@ -15,4 +15,4 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
diff --git a/using-rest.html b/using-rest.html
index f639471..26e7f3c 100644
--- a/using-rest.html
+++ b/using-rest.html
@@ -15,11 +15,11 @@
limitations under the License.
-->
-<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
+<!doctype html><html lang="en"> <script async
src="https://www.googletagmanager.com/gtag/js?id=UA-180663034-1"></script>
<script> window.dataLayer = window.dataLayer || []; function
gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config',
'UA-180663034-1'); </script><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 sourc [...]
https://localhost:8081/api/v1/signin
</pre><p> where:<dl><dt><code>http</code><dd>Either <code>http</code>
or <code>https</code> protocol.<dt><code>localhost:8081</code><dd>Host and port
on which REST server is started. <code>localhost:8081</code> is the default
configuration and can be <a
href="/server-and-probe.html">changed</a>.<dt><code>/api/v1</code><dd>Mandatory
prefix indicating API version.<dt><code>/signin</code><dd>Specific REST
path.</dl><div class="bq info"><p> <b>Management Script</b></p><p> <a href="/t
[...]
{
"code": "NC_INVALID_ACCESS_TOKEN",
"msg": "Unknown access token: PPdxjwXBOIMpAWNgpKq1"
}
- </pre><p> Following tables shows all possible <code>code</code> values
for these server errors:</p><table
class="gradient-table"><thead><tr><th>Code<th>Description<tbody><tr><td><code>NC_INVALID_ACCESS_TOKEN</code><td>
The access token is invalid or no longer valid. Note that previously issued
existing access tokens can expire or be otherwise invalidated and have to be
obtained again.<tr><td><code>NC_SIGNIN_FAILURE</code><td> Invalid or unknown
user email and/or user password dur [...]
+ </pre><p> Following tables shows all possible <code>code</code> values
for these server errors:</p><table
class="gradient-table"><thead><tr><th>Code<th>Description<tbody><tr><td><code>NC_INVALID_ACCESS_TOKEN</code><td>
The access token is invalid or no longer valid. Note that previously issued
existing access tokens can expire or be otherwise invalidated and have to be
obtained again.<tr><td><code>NC_SIGNIN_FAILURE</code><td> Invalid or unknown
user email and/or user password dur [...]