You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by gi...@apache.org on 2023/03/12 05:04:22 UTC

[groovy-dev-site] branch asf-site updated: 2023/03/12 05:04:19: Generated dev website from groovy-website@5bdc455

This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-dev-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 5ac663d  2023/03/12 05:04:19: Generated dev website from groovy-website@5bdc455
5ac663d is described below

commit 5ac663da6f34f699cc221d6aece81461fa2c4877
Author: jenkins <bu...@apache.org>
AuthorDate: Sun Mar 12 05:04:19 2023 +0000

    2023/03/12 05:04:19: Generated dev website from groovy-website@5bdc455
---
 blog/apache-nlpcraft-with-groovy.html | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/blog/apache-nlpcraft-with-groovy.html b/blog/apache-nlpcraft-with-groovy.html
index bb31f0d..0652749 100644
--- a/blog/apache-nlpcraft-with-groovy.html
+++ b/blog/apache-nlpcraft-with-groovy.html
@@ -53,7 +53,7 @@
                                     </ul>
                                 </div>
                             </div>
-                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Converting natural language into actions with NLPCraft and Groovy</a></li><li><a href='#_further_information' class='anchor-link'>Further information</a></li></ul><br/><ul class='nav-sidebar'><li style='padding: 0.35em 0.625em; background-color: #eee'><span>Related posts</ [...]
+                        </div><div id='content' class='page-1'><div class='row'><div class='row-fluid'><div class='col-lg-3'><ul class='nav-sidebar'><li><a href='./'>Blog index</a></li><li class='active'><a href='#doc'>Converting natural language into actions with NLPCraft and Groovy</a></li><li><a href='#_controlling_house_light_switches' class='anchor-link'>Controlling house light switches</a></li><li><a href='#_further_information' class='anchor-link'>Further information</a></li></ul> [...]
 <div class="sectionbody">
 <div class="paragraph">
 <p>This blog looks at using
@@ -87,6 +87,11 @@ is probably your best choice as programming language. Having said that,
 since we are on the JVM, certain integration steps aren&#8217;t too hard.
 We&#8217;ll show using Groovy as the client language.</p>
 </div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_controlling_house_light_switches">Controlling house light switches</h2>
+<div class="sectionbody">
 <div class="paragraph">
 <p><span class="image right"><img src="https://original.accentuate.io/556263801041/1636542278424/Lighting-Automation-Mob.jpg" alt="House lighting (source: accentuate.io)" width="200"></span>
 First, a bit of background about the example.
@@ -133,7 +138,6 @@ Groovy is referencing. They are more recent than what Scala is expecting.
 <div class="content">
 <pre class="prettyprint highlight"><code data-lang="groovy">import org.apache.nlpcraft.*
 import org.apache.nlpcraft.examples.lightswitch.LightSwitchModel
-import scala.util.Using
 import static scala.collection.immutable.HashMap$.MODULE$ as ScalaMap
 
 var data = ScalaMap.empty()  // no optional data