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/09 20:49:58 UTC

[incubator-nlpcraft] branch NLPCRAFT-41 updated: Update nlpcraft.conf

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

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


The following commit(s) were added to refs/heads/NLPCRAFT-41 by this push:
     new 14b8ad8  Update nlpcraft.conf
14b8ad8 is described below

commit 14b8ad8fd3ae09340039a4c4860bbaed975d19ff
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Wed Sep 9 13:49:46 2020 -0700

    Update nlpcraft.conf
---
 nlpcraft/src/main/resources/nlpcraft.conf | 38 +++++++++++++++++++++++++++----
 1 file changed, 33 insertions(+), 5 deletions(-)

diff --git a/nlpcraft/src/main/resources/nlpcraft.conf b/nlpcraft/src/main/resources/nlpcraft.conf
index d67e7b4..ad65695 100644
--- a/nlpcraft/src/main/resources/nlpcraft.conf
+++ b/nlpcraft/src/main/resources/nlpcraft.conf
@@ -230,13 +230,41 @@ nlpcraft {
         # Safely ignored if 'null' - but then 'models' should have at least one element.
         jarsFolder = null
 
-        # Fully qualified class names for models that will be instantiated.
-        # Must be on the active class path for the probe.
-        # Can be empty but then 'jarsFolder' must be provided.
+        # Specifies a *single* fully qualified model class name for the probe to start with.
+        #
+        # NOTE:
+        # -----
+        # There are separate configurations for single ('model') or multiple models ('models')
+        # for the probe to start with. It is done so for easy overriding via system properties of these
+        # values due to HOCON limitations in dealing with array value overriding:
+        #
+        #   - If this value is specified the 'models' value is ignored.
+        #   - if this value is 'null' then the 'models' configuration will be taken in.
+        #   - Class name must be on the active class path for the probe.
+        #   - Both 'model' and 'models' can be empty but then 'jarsFolder' must be provided.
+        #
+        model = null
+
+        # Specifies *multiple* fully qualifies model class names for the probe to start with.
+        #
+        # NOTE:
+        # -----
+        # There are separate configurations for single ('model') or multiple models ('models')
+        # for the probe to start with. It is done so for easy overriding via system properties of these
+        # values due to HOCON limitations in dealing with array value overriding:
+        #
+        #   - This configuration is ignored if 'model' property is set (not 'null').
+        #   - Class names must be on the active class path for the probe.
+        #   - Both 'model' and 'models' can be empty but then 'jarsFolder' must be provided.
+        #
         models = [
             # Example of listing models for probe to start with.
-
-
+            "org.apache.nlpcraft.examples.alarm.AlarmModel",
+            "org.apache.nlpcraft.examples.echo.EchoModel",
+            "org.apache.nlpcraft.examples.helloworld.HelloWorldModel",
+            "org.apache.nlpcraft.examples.time.TimeModel",
+            "org.apache.nlpcraft.examples.weather.WeatherModel",
+            "org.apache.nlpcraft.examples.lightswitch.LightSwitchModel"
 
             # Note that following models require 'google' on the server side.
             # See https://nlpcraft.apache.org/integrations.html#nlp for more details