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/10/19 09:41:09 UTC
[incubator-nlpcraft] branch master updated: Minor fixes.
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 a82139d8 Minor fixes.
a82139d8 is described below
commit a82139d8680bc560763910ae9a41173e4dde14f1
Author: Sergey Kamov <sk...@gmail.com>
AuthorDate: Wed Oct 19 13:40:54 2022 +0400
Minor fixes.
---
.../org/apache/nlpcraft/examples/lightswitch/LightSwitchRuModel.scala | 3 +--
.../src/main/scala/org/apache/nlpcraft/examples/time/TimeModel.scala | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/nlpcraft-examples/lightswitch-ru/src/main/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchRuModel.scala b/nlpcraft-examples/lightswitch-ru/src/main/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchRuModel.scala
index 92b2211c..457719e7 100644
--- a/nlpcraft-examples/lightswitch-ru/src/main/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchRuModel.scala
+++ b/nlpcraft-examples/lightswitch-ru/src/main/scala/org/apache/nlpcraft/examples/lightswitch/LightSwitchRuModel.scala
@@ -20,11 +20,10 @@ package org.apache.nlpcraft.examples.lightswitch
import com.google.gson.Gson
import org.apache.nlpcraft.*
import org.apache.nlpcraft.annotations.*
+
import org.apache.nlpcraft.examples.lightswitch.nlp.entity.parser.NCRuSemanticEntityParser
import org.apache.nlpcraft.examples.lightswitch.nlp.token.enricher.*
import org.apache.nlpcraft.examples.lightswitch.nlp.token.parser.NCRuTokenParser
-import org.apache.nlpcraft.nlp.enrichers.NCEnStopWordsTokenEnricher
-import org.apache.nlpcraft.nlp.parsers.*
import scala.jdk.CollectionConverters.*
diff --git a/nlpcraft-examples/time/src/main/scala/org/apache/nlpcraft/examples/time/TimeModel.scala b/nlpcraft-examples/time/src/main/scala/org/apache/nlpcraft/examples/time/TimeModel.scala
index 4524a817..a9702929 100644
--- a/nlpcraft-examples/time/src/main/scala/org/apache/nlpcraft/examples/time/TimeModel.scala
+++ b/nlpcraft-examples/time/src/main/scala/org/apache/nlpcraft/examples/time/TimeModel.scala
@@ -91,8 +91,7 @@ class TimeModel extends NCModelAdapter(
val (city, data) = citiesData.find(_._1.name.equalsIgnoreCase(cityName)).getOrElse(throw new NCRejection(String.format("No timezone mapping for %s.", cityName)))
- mkResult(city.name, city.country, data.timezone, data.latitude, data.longitude);
-
+ mkResult(city.name, city.country, data.timezone, data.latitude, data.longitude)
/**
* Callback on local time intent match.