You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2020/09/23 17:28:25 UTC

[incubator-nlpcraft-website] branch master updated: Removed model 'examples' from docs.

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 ebf8bfc  Removed model 'examples' from docs.
ebf8bfc is described below

commit ebf8bfc8cb7583c500fc990c6aa425575b0b97d9
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Wed Sep 23 10:28:13 2020 -0700

    Removed model 'examples' from docs.
---
 data-model.html           |  2 --
 examples/alarm_clock.html | 11 +++--------
 2 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/data-model.html b/data-model.html
index 9055622..b274849 100644
--- a/data-model.html
+++ b/data-model.html
@@ -270,7 +270,6 @@ id: data_model
      "version": "1.0",
      "description": "Short model description.",
      "enabledBuiltInTokens": ["google:person", "google:location"]
-     "examples": [],
      "macros": [],
      "metadata": {},
      "elements": [
@@ -295,7 +294,6 @@ id: "user.defined.id"
 name: "User Defined Name"
 version: "1.0"
 description: "Short model description."
-examples:
 macros:
 enabledBuiltInTokens:
 elements:
diff --git a/examples/alarm_clock.html b/examples/alarm_clock.html
index c7dfa1c..2f2df71 100644
--- a/examples/alarm_clock.html
+++ b/examples/alarm_clock.html
@@ -109,7 +109,7 @@ id: alarm_clock
             <code>NCModelFileAdapter</code> in our Java-based model implementation. Create new <code>alarm_model.json</code>
             file and add the following model declaration into it:
         </p>
-        <pre class="brush: js, highlight: [7, 16, 25]">
+        <pre class="brush: js, highlight: [7, 11, 20]">
 {
     "id": "nlpcraft.alarm.ex",
     "name": "Alarm Example Model",
@@ -118,11 +118,6 @@ id: alarm_clock
     "enabledBuiltInTokens": [
         "nlpcraft:num"
     ],
-    "examples": [
-        "Ping me in 3 minutes",
-        "Buzz me in an hour and 15mins",
-        "Set my alarm for 30s"
-    ],
     "elements": [
         {
             "id": "x:alarm",
@@ -145,11 +140,11 @@ id: alarm_clock
                 it needs to be explicitly enabled).
             </li>
             <li>
-                <code>Line 16</code> defines the only custom model element we'll need. It's ID is <code>x:alarm</code> and
+                <code>Line 11</code> defines the only custom model element we'll need. It's ID is <code>x:alarm</code> and
                 it is defined through synonyms. It basically means a verb to set up an alarm clock.
             </li>
             <li>
-                On <code>line 25</code> we define an intent <code>alarm</code> that we are going to be looking for in the user input that
+                On <code>line 20</code> we define an intent <code>alarm</code> that we are going to be looking for in the user input that
                 consists of two terms: one for <code>x:alarm</code> element (defined above) and another one for up to 7 numeric values
                 of unit type <code>datetime</code> (minutes, seconds, hours, etc.).
             </li>