You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2020/10/26 12:10:55 UTC

[incubator-nlpcraft] branch NLPCRAFT-160 created (now f692cbf)

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

sergeykamov pushed a change to branch NLPCRAFT-160
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git.


      at f692cbf  WIP.

This branch includes the following new commits:

     new f692cbf  WIP.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-nlpcraft] 01/01: WIP.

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-160
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git

commit f692cbf5ec9854e55263edcadc94bb0013d05a63
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Mon Oct 26 15:10:45 2020 +0300

    WIP.
---
 .../org/apache/nlpcraft/examples/lightswitch/LightSwitchModel.scala     | 1 +
 .../org/apache/nlpcraft/examples/lightswitch/lightswitch_model.yaml     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchModel.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchModel.scala
index 261b239..effaf39 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchModel.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchModel.scala
@@ -54,6 +54,7 @@ class LightSwitchModel extends NCModelFileAdapter("org/apache/nlpcraft/examples/
         "No lights in the bedroom, please."
     ))
     def onMatch(
+        ctx: NCContext,
         @NCIntentTerm("act") actTok: NCToken,
         @NCIntentTerm("loc") locToks: List[NCToken]
     ): NCResult = {
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/lightswitch/lightswitch_model.yaml b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/lightswitch/lightswitch_model.yaml
index 94087f4..8793f50 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/lightswitch/lightswitch_model.yaml
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/examples/lightswitch/lightswitch_model.yaml
@@ -52,4 +52,4 @@ elements:
       - "{<ACTION>|shut|kill|stop|eliminate} {off|out} <LIGHT>"
       - "no <LIGHT>"
 intents:
-  - "intent=ls conv=false term(act)={groups @@ 'act'} term(loc)={id == 'ls:loc'}*"
\ No newline at end of file
+  - "intent=ls conv=true term(act)={groups @@ 'act'} term(loc)={id == 'ls:loc'}*"
\ No newline at end of file