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 2022/08/06 16:54:04 UTC

[incubator-nlpcraft] branch NLPCRAFT-509 updated (f68a82cd -> 70e54fa3)

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

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


    from f68a82cd Result trait refactoring.
     add d29710a7 Update .gitignore
     new 080d5639 Merge branch 'master' into NLPCRAFT-509
     new 70e54fa3 WIP

The 2 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.


Summary of changes:
 .gitignore                                                  |  1 +
 .../src/main/scala/org/apache/nlpcraft/NCModelConfig.scala  | 13 +++----------
 nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.scala  |  1 -
 3 files changed, 4 insertions(+), 11 deletions(-)


[incubator-nlpcraft] 02/02: WIP

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

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

commit 70e54fa38af97ec19a333585016c4dddf6725a4a
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Sat Aug 6 09:53:59 2022 -0700

    WIP
---
 .../src/main/scala/org/apache/nlpcraft/NCModelConfig.scala  | 13 +++----------
 nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.scala  |  1 -
 2 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfig.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfig.scala
index 757ddf24..19297ed1 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfig.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfig.scala
@@ -41,26 +41,19 @@ object NCModelConfig:
             override val getDescription: Option[String] = Option(desc)
             override val getOrigin: Option[String] = Option(orig)
 
-    def apply(id: String, name: String, ver: String, desc: String, orig: String, conversationTimeout: Long, conversationDepth: Int): NCModelConfig = new NCModelConfig() :
+    def apply(id: String, name: String, ver: String, desc: String, orig: String, convTimeout: Long, convDepth: Int): NCModelConfig = new NCModelConfig() :
         override val getId: String = id
         override val getName: String = name
         override val getVersion: String = ver
         override val getDescription: Option[String] = Option(desc)
         override val getOrigin: Option[String] = Option(orig)
-        override val getConversationTimeout: Long = conversationTimeout
-        override val getConversationDepth: Int = conversationDepth
+        override val getConversationTimeout: Long = convTimeout
+        override val getConversationDepth: Int = convDepth
 
 import org.apache.nlpcraft.NCModelConfig.*
 
 /**
   *
-  * @param id
-  * @param name
-  * @param version
-  * @param description
-  * @param origin
-  * @param conversationTimeout
-  * @param conversationDepth
   */
 trait NCModelConfig extends NCPropertyMapAdapter:
     def getId: String
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.scala
index ffc83464..67bd4789 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCResult.scala
@@ -27,7 +27,6 @@ object NCResult:
             def getType: NCResultType = resultType
             def getIntentId: Option[String] = Option(intentId)
 
-
     def apply(body: Any, resultType: NCResultType): NCResult =
         new NCResult():
             def getBody: Any = body


[incubator-nlpcraft] 01/02: Merge branch 'master' into NLPCRAFT-509

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

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

commit 080d5639ec4055f66b49fadd9098a2c4fd7d3345
Merge: f68a82cd d29710a7
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Sat Aug 6 09:51:23 2022 -0700

    Merge branch 'master' into NLPCRAFT-509

 .gitignore | 1 +
 1 file changed, 1 insertion(+)