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

[incubator-nlpcraft] branch NLPCRAFT-91 updated (a6b0da5 -> 46a3a62)

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

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


 discard a6b0da5  NLPCRAFT-91: Initial files
     add 0fe229f  Update NCCli.scala
     add 405b5ac  split-trim-filter refactoring.
     add 880f25d  Improvements on CLI docs.
     add b94b2f5  WIP.
     add 6ee9a38  WIP.
     add 2ed70a1  Fixed NLPCRAFT-193.
     add a40edca  Application properties for akka moved into application.conf.
     add 50fcffd  NLPCRAFT-194 fix.
     add b654f19  Fix for NLPCRAFT-198
     new 46a3a62  NLPCRAFT-91: Initial files

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (a6b0da5)
            \
             N -- N -- N   refs/heads/NLPCRAFT-91 (46a3a62)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 .../resources/{reference.conf => application.conf} |    1 +
 .../nlpcraft/common/config/NCConfigurable.scala    |   24 +-
 .../nlpcraft/common/makro/NCMacroParser.scala      |    3 +-
 .../common/nlp/numeric/NCNumericGenerator.scala    |    3 +-
 .../common/nlp/numeric/NCNumericManager.scala      |    2 +-
 .../org/apache/nlpcraft/common/util/NCUtils.scala  |   35 +-
 .../nlpcraft/examples/sql/db/SqlBuilder.scala      |    6 +-
 .../nlpcraft/examples/sql/db/SqlValueLoader.scala  |    4 +-
 .../nlpcraft/examples/time/TimeModelApp.java       |    4 +-
 .../nlpcraft/model/tools/cmdline/NCCli.scala       | 1660 +++-----------------
 .../model/tools/cmdline/NCCliCommands.scala        | 1135 +++++++++++++
 .../model/tools/cmdline/NCCliRestSpec.scala        |  326 ++++
 .../model/tools/embedded/NCEmbeddedProbe.java      |   68 +-
 .../sqlgen/impl/NCSqlModelGeneratorImpl.scala      |   18 +-
 .../model/tools/test/NCTestAutoModelValidator.java |  104 +-
 .../test/impl/NCTestAutoModelValidatorImpl.scala   |   50 +-
 .../scala/org/apache/nlpcraft/probe/NCProbe.scala  |    9 +-
 .../org/apache/nlpcraft/probe/NCProbeBoot.scala    |   88 +-
 .../probe/mgrs/deploy/NCDeployManager.scala        |   14 +-
 .../mgrs/nlp/enrichers/limit/NCLimitEnricher.scala |    5 +-
 .../geo/tools/metro/NCGeoMetroGenerator.scala      |    4 +-
 .../server/nlp/enrichers/date/NCDateEnricher.scala |    2 +-
 .../server/nlp/enrichers/date/NCDateParser.scala   |    9 +-
 .../enrichers/stopword/NCStopWordEnricher.scala    |    4 +-
 .../server/nlp/preproc/NCPreProcessManager.scala   |   10 +-
 .../server/nlp/spell/NCSpellCheckManager.scala     |    2 +-
 .../org/apache/nlpcraft/server/sql/NCSql.scala     |    2 +-
 .../apache/nlpcraft/server/sql/NCSqlManager.scala  |    2 +-
 .../server/sugsyn/NCSuggestSynonymManager.scala    |    2 +-
 .../scala/org/apache/nlpcraft/NCTestContext.scala  |    4 +-
 .../nlpcraft/model/intent/dsl/NCDslSpec.scala      |    5 +-
 .../intent/impl/NCIntentSolverEngineSpec.scala     |    3 +-
 .../sqlgen/impl/NCSqlModelGeneratorImplSpec.scala  |    5 +-
 33 files changed, 1947 insertions(+), 1666 deletions(-)
 rename nlpcraft/src/main/resources/{reference.conf => application.conf} (90%)
 create mode 100644 nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliCommands.scala
 create mode 100644 nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCliRestSpec.scala


[incubator-nlpcraft] 01/01: NLPCRAFT-91: Initial files

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

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

commit 46a3a6282e35fda4d93253bc4b9cf65603375e24
Author: Ifropc <if...@apache.org>
AuthorDate: Sun Dec 13 15:38:19 2020 -0800

    NLPCRAFT-91: Initial files
---
 nlpcraft-examples/pom.xml                          | 91 ++++++++++++++++++++++
 .../kotlin/org/apache/nlpcraft/example/Example.kt  | 23 ++++++
 .../org/apache/nlpcraft/example/ExampleTest.kt     | 32 ++++++++
 pom.xml                                            |  7 ++
 4 files changed, 153 insertions(+)

diff --git a/nlpcraft-examples/pom.xml b/nlpcraft-examples/pom.xml
new file mode 100644
index 0000000..97637b5
--- /dev/null
+++ b/nlpcraft-examples/pom.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <name>NLPCraft - Examples</name>
+    <artifactId>nlpcraft-examples</artifactId>
+
+    <parent>
+        <groupId>org.apache.nlpcraft</groupId>
+        <artifactId>nlpcraft-parent</artifactId>
+        <version>0.7.2</version>
+        <relativePath>../</relativePath>
+    </parent>
+
+    <properties>
+        <kotlin.ver>1.4.10</kotlin.ver>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>nlpcraft</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.jetbrains.kotlin</groupId>
+            <artifactId>kotlin-stdlib</artifactId>
+            <version>${kotlin.ver}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter-engine</artifactId>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.jetbrains.kotlin</groupId>
+                <artifactId>kotlin-maven-plugin</artifactId>
+                <version>${kotlin.ver}</version>
+                <executions>
+                    <execution>
+                        <id>compile</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>compile</goal>
+                        </goals>
+                        <configuration>
+                            <sourceDirs>
+                                <sourceDir>src/main/kotlin</sourceDir>
+                            </sourceDirs>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>test-compile</id>
+                        <phase>test-compile</phase>
+                        <goals>
+                            <goal>test-compile</goal>
+                        </goals>
+                        <configuration>
+                            <sourceDirs>
+                                <sourceDir>src/test/kotlin</sourceDir>
+                            </sourceDirs>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/nlpcraft-examples/src/main/kotlin/org/apache/nlpcraft/example/Example.kt b/nlpcraft-examples/src/main/kotlin/org/apache/nlpcraft/example/Example.kt
new file mode 100644
index 0000000..2591725
--- /dev/null
+++ b/nlpcraft-examples/src/main/kotlin/org/apache/nlpcraft/example/Example.kt
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.nlpcraft.example
+
+fun testExample() {
+    print("Test")
+}
\ No newline at end of file
diff --git a/nlpcraft-examples/src/test/kotlin/org/apache/nlpcraft/example/ExampleTest.kt b/nlpcraft-examples/src/test/kotlin/org/apache/nlpcraft/example/ExampleTest.kt
new file mode 100644
index 0000000..6b25e48
--- /dev/null
+++ b/nlpcraft-examples/src/test/kotlin/org/apache/nlpcraft/example/ExampleTest.kt
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.nlpcraft.example
+
+import org.junit.jupiter.api.Assertions
+import org.junit.jupiter.api.Test
+
+class ExampleTest {
+    @Test
+    fun testPass() {
+        testExample()
+
+        Assertions.assertTrue(true)
+    }
+}
+
diff --git a/pom.xml b/pom.xml
index 10ad8e8..6c45a74 100644
--- a/pom.xml
+++ b/pom.xml
@@ -624,6 +624,13 @@
         </profile>
 
         <profile>
+            <id>examples</id>
+            <modules>
+                <module>nlpcraft-examples</module>
+            </modules>
+        </profile>
+
+        <profile>
             <id>release</id>
             <activation>
                 <property>