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 2022/03/18 09:45:42 UTC

[incubator-nlpcraft] branch master updated: POM libraries versions fixes. Time example bugfix.

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0a0e92e  POM libraries versions fixes. Time example bugfix.
0a0e92e is described below

commit 0a0e92e259d539d49c38b620b40cb8fe9e5a29d3
Author: Sergey Kamov <sk...@gmail.com>
AuthorDate: Fri Mar 18 12:45:33 2022 +0300

    POM libraries versions fixes.
    Time example bugfix.
---
 nlpcraft-examples/lightswitch/pom.xml                |  4 ++--
 .../org/apache/nlpcraft/examples/time/TimeModel.java |  7 ++++++-
 pom.xml                                              | 20 ++++++++++----------
 3 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/nlpcraft-examples/lightswitch/pom.xml b/nlpcraft-examples/lightswitch/pom.xml
index 9f2e533..a786cd7 100644
--- a/nlpcraft-examples/lightswitch/pom.xml
+++ b/nlpcraft-examples/lightswitch/pom.xml
@@ -33,8 +33,8 @@
 
     <properties>
         <kotlin.ver>1.6.10</kotlin.ver>
-        <groovy.ver>3.0.9</groovy.ver>
-        <gmavenplus.ver>1.12.1</gmavenplus.ver>
+        <groovy.ver>3.0.10</groovy.ver>
+        <gmavenplus.ver>1.13.1</gmavenplus.ver>
     </properties>
 
     <dependencies>
diff --git a/nlpcraft-examples/time/src/main/java/org/apache/nlpcraft/examples/time/TimeModel.java b/nlpcraft-examples/time/src/main/java/org/apache/nlpcraft/examples/time/TimeModel.java
index 127c464..723825b 100644
--- a/nlpcraft-examples/time/src/main/java/org/apache/nlpcraft/examples/time/TimeModel.java
+++ b/nlpcraft-examples/time/src/main/java/org/apache/nlpcraft/examples/time/TimeModel.java
@@ -37,6 +37,8 @@ import org.apache.nlpcraft.examples.time.utils.cities.City;
 import org.apache.nlpcraft.examples.time.utils.cities.CityData;
 import org.apache.nlpcraft.examples.time.utils.keycdn.GeoData;
 import org.apache.nlpcraft.examples.time.utils.keycdn.GeoManager;
+import org.apache.nlpcraft.internal.util.NCResourceReader;
+import org.apache.nlpcraft.nlp.entity.parser.NCOpenNLPEntityParser;
 
 import java.time.ZoneId;
 import java.time.ZonedDateTime;
@@ -75,7 +77,10 @@ public class TimeModel extends NCModelAdapter {
     public TimeModel() {
         super(
             new NCModelConfig("nlpcraft.time.ex", "Time Example Model", "1.0"),
-            new NCModelPipelineBuilder().withSemantic("EN", "time_model.yaml").build()
+            new NCModelPipelineBuilder().
+                withSemantic("EN", "time_model.yaml").
+                withEntityParser(new NCOpenNLPEntityParser(NCResourceReader.getPath("opennlp/en-ner-location.bin"))).
+                build()
         );
     }
 
diff --git a/pom.xml b/pom.xml
index c64e1d0..8223804 100644
--- a/pom.xml
+++ b/pom.xml
@@ -83,12 +83,12 @@
 
         <!-- Versions. -->
         <scala.plugin.ver>4.5.4</scala.plugin.ver>
-        <log4j.ver>2.17.1</log4j.ver>
+        <log4j.ver>2.17.2</log4j.ver>
         <scala.config.ver>1.3.4</scala.config.ver>
         <scala.logging.ver>3.9.4</scala.logging.ver>
         <scalatest.ver>3.2.9</scalatest.ver>
-        <scala.par.colections>1.0.3</scala.par.colections>
-        <maven.jar.plugin.ver>3.2.0</maven.jar.plugin.ver>
+        <scala.par.colections>1.0.4</scala.par.colections>
+        <maven.jar.plugin.ver>3.2.2</maven.jar.plugin.ver>
         <maven.compiler.plugin.ver>3.8.1</maven.compiler.plugin.ver>
         <maven.enforcer.plugin.ver>1.4.1</maven.enforcer.plugin.ver>
         <maven.surefire.plugin.ver>2.22.1</maven.surefire.plugin.ver>
@@ -96,17 +96,17 @@
         <maven.install.plugin.ver>2.5.2</maven.install.plugin.ver>
         <maven.source.plugin.ver>3.0.1</maven.source.plugin.ver>
         <maven.clean.plugin.ver>3.1.0</maven.clean.plugin.ver>
-        <org.antlr4.ver>4.9</org.antlr4.ver>
-        <jline.ver>3.20.0</jline.ver>
+        <org.antlr4.ver>4.9.3</org.antlr4.ver>
+        <jline.ver>3.21.0</jline.ver>
         <commons.io.ver>2.11.0</commons.io.ver>
         <commons.lang3.ver>3.12.0</commons.lang3.ver>
         <commons.codec.ver>1.15</commons.codec.ver>
         <commons.collections.ver>4.4</commons.collections.ver>
-        <scala3.ref.ver>1.1.1</scala3.ref.ver>
+        <scala3.ref.ver>1.1.4</scala3.ref.ver>
         <junit.ver>5.8.2</junit.ver>
-        <scalatest.ver>3.2.9</scalatest.ver>
-        <jackson.ver>2.13.1</jackson.ver>
-        <jackson.yaml.ver>2.13.1</jackson.yaml.ver>
+        <scalatest.ver>3.2.11</scalatest.ver>
+        <jackson.ver>2.13.2</jackson.ver>
+        <jackson.yaml.ver>2.13.2</jackson.yaml.ver>
         <apache.opennlp.ver>1.9.4</apache.opennlp.ver>
         <jmh.version>1.34</jmh.version>
         <gson.ver>2.9.0</gson.ver>
@@ -122,7 +122,7 @@
             for NLPCraft. It is licensed under GPLv3 and has to be downloaded separately by
             the end user, when required.
         -->
-        <stanford.corenlp.ver>4.3.2</stanford.corenlp.ver>
+        <stanford.corenlp.ver>4.4.0</stanford.corenlp.ver>
     </properties>
 
     <dependencyManagement>