This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft-website.git
The following commit(s) were added to refs/heads/master by this push:
new 6a8024b WIP.
6a8024b is described below
commit 6a8024b72c432ac7b234e12543ef3354382c7e1c
Author: Aaron Radzinzski <[email protected]>
AuthorDate: Sat Oct 31 15:13:37 2020 -0700
WIP.
---
index.html | 8 ++++----
tools/test_framework.html | 27 ++++++++++++++++++++++++++-
2 files changed, 30 insertions(+), 5 deletions(-)
diff --git a/index.html b/index.html
index f990d36..c7a4aef 100644
--- a/index.html
+++ b/index.html
@@ -158,7 +158,7 @@ layout: default
<section>
<p>
REST API and Java-based implementation natively
- support world's largest ecosystem of development
tools, multiple programming languages, frameworks
+ supports the world's largest ecosystem of development
tools, multiple programming languages, frameworks
and services.
</p>
<div id="lang-logos">
@@ -183,7 +183,7 @@ layout: default
<section>
<p>
Model-as-a-code convention natively
- supports any system development life cycle tools and
frameworks in Java eco-system.
+ supports any system development life cycle tools and
frameworks in the Java ecosystem.
</p>
</section>
</div>
@@ -202,8 +202,8 @@ layout: default
<h3 class="sub-section-title">Advanced NLP Toolset</h3>
<section>
<p>
- Combines easy-of-use and development productivity with
state-of-the-art NLP
- capabilities like short-term-memory (STM) support,
advanced intent DSL with deterministic matching, and composable NEs.
+ Ease-of-use and development productivity along with
state-of-the-art NLP
+ capabilities like short-term-memory (STM) support,
advanced intent DSL with deterministic matching, and composable named entities.
</p>
</section>
</div>
diff --git a/tools/test_framework.html b/tools/test_framework.html
index f7e40f2..c4e6875 100644
--- a/tools/test_framework.html
+++ b/tools/test_framework.html
@@ -153,8 +153,24 @@ public class AlarmTest {
<p>
The same model from <a href="/examples/alarm_clock.html">Alarm
Clock</a> example can be auto validated using
<a target="javadoc"
href="/apis/latest/org/apache/nlpcraft/model/tools/test/NCTestAutoModelValidator.html">NCTestAutoModelValidator</a>
- class and the <code>@NCIntentSample</code> annotation from the
model's callback method.
+ class and the <code>@NCIntentSample</code> annotation from the
model's callback method:
</p>
+ <pre class="brush: java, highlight: [4, 5, 6]">
+public class AlarmModel extends NCModelFileAdapter {
+ @NCIntentRef("alarm")
+ @NCIntentSample({
+ "Ping me in 3 minutes",
+ "Buzz me in an hour and 15mins",
+ "Set my alarm for 30s"
+ })
+ NCResult onMatch(
+ NCIntentMatch ctx,
+ @NCIntentTerm("nums") List<NCToken> numToks
+ ) {
+ // ...
+ }
+}
+ </pre>
<p>
Auto model validator
will scan the model for its callback methods, collect all samples
from <code>@NCIntentSample</code> annotations, and
@@ -169,6 +185,15 @@ public class AlarmTest {
java -ea -DNLPCRAFT_TEST_MODELS=org.apache.nlpcraft.examples.alarm.AlarmModel
org.apache.nlpcraft.model.tools.test.NCTestAutoModelValidator
</pre>
<p>
+ Notes:
+ </p>
+ <ul>
+ <li>
+ When running auto validator from command line you set models
to test via <code>NLPCRAFT_TEST_MODELS</code>
+ system property that should contain comma separate list of the
data model classes.
+ </li>
+ </ul>
+ <p>
In the log output you should see the following validation results:
</p>
<figure>