You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2022/10/17 18:48:15 UTC
[incubator-nlpcraft-website] branch NLPCRAFT-513 updated: Update light_switch.html
This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-513
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft-website.git
The following commit(s) were added to refs/heads/NLPCRAFT-513 by this push:
new 8c17e78 Update light_switch.html
8c17e78 is described below
commit 8c17e782e3826aa507468f19a8776457fc5b76ba
Author: Aaron Radzinski <ar...@apache.org>
AuthorDate: Mon Oct 17 11:48:09 2022 -0700
Update light_switch.html
---
examples/light_switch.html | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/examples/light_switch.html b/examples/light_switch.html
index d61c4f1..2008c6f 100644
--- a/examples/light_switch.html
+++ b/examples/light_switch.html
@@ -209,8 +209,8 @@ fa_icon: fa-cube
<section id="testing">
<h2 class="section-title">Testing <a href="#"><i class="top-link fas fa-fw fa-angle-double-up"></i></a></h2>
<p>
- Simple test defined in <code>LightSwitchModelSpec</code> allows to check that all input test sentences are
- processed expected way and fire intent <code>ls</code>.
+ The test defined in <code>LightSwitchModelSpec</code> allows to check that all input test sentences are
+ processed correctly and trigger the expected intent <code>ls</code>:
</p>
<pre class="brush: scala, highlight: [9, 11]">
package demo
@@ -252,16 +252,16 @@ fa_icon: fa-cube
</pre>
<ul>
<li>
- On <code>line 9</code> created client for model instance.
+ On <code>line 9</code> the client for our model is created.
</li>
<li>
- On <code>line 11</code> called special method <code>debugAsk</code>,
- which was added to main client API for tests reasons.
- It allows to check detected intent, and its callback parameters.
+ On <code>line 11</code> a special method <code>debugAsk</code> is called.
+ It allows to check the winning intent and its callback parameters without actually
+ calling the intent.
</li>
<li>
- On <code>lines 13-24</code> presented model input samples.
- All of these sentences should fire <code>ls</code> intent of given model.
+ <code>Lines 13-24</code> define all the test input sentences that should all
+ trigger <code>ls</code> intent.
</li>
</ul>
<p>