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/11/14 10:59:27 UTC
[incubator-nlpcraft] branch NLPCRAFT-153 updated (12304e1 ->
3eafc14)
This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a change to branch NLPCRAFT-153
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git.
from 12304e1 WIP.
new c9fabba WIP.
new 3eafc14 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:
.../org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
[incubator-nlpcraft] 01/02: 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-153
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit c9fabbad04f232f25eb0efd4f47d798f6b7144df
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Sat Nov 14 13:58:41 2020 +0300
WIP.
---
.../scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index b74f4dc..6313d54 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -2822,11 +2822,19 @@ object NCCli extends App {
@throws[NCE]
def cpCommon(langDir: String, langExt: String): Unit = {
cp(".gitignore", extractNoHeader)
+
cp(
"readme.txt",
extractNoHeader,
"com.company.nlp.TemplateModel" → s"$packName.$className",
- "TemplateModel" → className
+ "NCEmbeddedProbe.start(TemplateModel.class);" →
+ langExt match {
+ case "java" ⇒ s"NCEmbeddedProbe.start($className.class);"
+ case "kt" ⇒ s"NCEmbeddedProbe.start($className::class.java)"
+ case "scala" ⇒ s"NCEmbeddedProbe.start(classOf[$className])"
+
+ case _ ⇒ throw new AssertionError(s"Unexpected language extension: $langExt")
+ }
)
cpAndRename(
[incubator-nlpcraft] 02/02: 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-153
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit 3eafc14da526f4336bf95637a9cf27333e3bef6b
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Sat Nov 14 13:59:20 2020 +0300
WIP.
---
.../org/apache/nlpcraft/model/tools/cmdline/NCCli.scala | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index 6313d54..c7c992e 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -2828,13 +2828,15 @@ object NCCli extends App {
extractNoHeader,
"com.company.nlp.TemplateModel" → s"$packName.$className",
"NCEmbeddedProbe.start(TemplateModel.class);" →
- langExt match {
- case "java" ⇒ s"NCEmbeddedProbe.start($className.class);"
- case "kt" ⇒ s"NCEmbeddedProbe.start($className::class.java)"
- case "scala" ⇒ s"NCEmbeddedProbe.start(classOf[$className])"
+ (
+ langExt match {
+ case "java" ⇒ s"NCEmbeddedProbe.start($className.class);"
+ case "kt" ⇒ s"NCEmbeddedProbe.start($className::class.java)"
+ case "scala" ⇒ s"NCEmbeddedProbe.start(classOf[$className])"
- case _ ⇒ throw new AssertionError(s"Unexpected language extension: $langExt")
- }
+ case _ ⇒ throw new AssertionError(s"Unexpected language extension: $langExt")
+ }
+ )
)
cpAndRename(