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 2021/07/18 22:10:12 UTC

[incubator-nlpcraft-website] branch master updated: Update light_switch.html

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 24097d4  Update light_switch.html
24097d4 is described below

commit 24097d4b80727e0b2aa24af2384f671a22465464
Author: Aaron Radzinski <ar...@apache.org>
AuthorDate: Sun Jul 18 15:10:01 2021 -0700

    Update light_switch.html
---
 examples/light_switch.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/light_switch.html b/examples/light_switch.html
index 18fd4a7..d7dddf9 100644
--- a/examples/light_switch.html
+++ b/examples/light_switch.html
@@ -183,7 +183,7 @@ class LightSwitch extends NCModelFileAdapter("light_switch.yaml") {
             if (locToks.isEmpty)
                 "entire house"
             else
-                locToks.map(_.meta[String]("nlpcraft:nlp:origtext")).mkString(", ")
+                locToks.map(_.getOriginalText()).mkString(", ")
 
         // Add HomeKit, Arduino or other integration here.