This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-383
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-383 by this push:
new c4a08d3 WIP.
c4a08d3 is described below
commit c4a08d3df8c5ab5bf97ec78a4001af00ff65cdb3
Author: Sergey Kamov <[email protected]>
AuthorDate: Sat Aug 7 08:55:46 2021 +0300
WIP.
---
.../examples/solarsystem/tools/SolarSystemOpenApiService.scala | 4 ----
1 file changed, 4 deletions(-)
diff --git
a/nlpcraft-examples/solarsystem/src/main/java/org/apache/nlpcraft/examples/solarsystem/tools/SolarSystemOpenApiService.scala
b/nlpcraft-examples/solarsystem/src/main/java/org/apache/nlpcraft/examples/solarsystem/tools/SolarSystemOpenApiService.scala
index d6d4011..5e56920 100644
---
a/nlpcraft-examples/solarsystem/src/main/java/org/apache/nlpcraft/examples/solarsystem/tools/SolarSystemOpenApiService.scala
+++
b/nlpcraft-examples/solarsystem/src/main/java/org/apache/nlpcraft/examples/solarsystem/tools/SolarSystemOpenApiService.scala
@@ -105,10 +105,6 @@ class SolarSystemOpenApiService extends LazyLogging {
val res = bodyRequest().withParameters("id", "englishName",
"discoveredBy").execute()
- def extract(name: String): Map[String, String] =
- res.map(row => row("id").toString.strip() ->
row(name).toString.strip()).
- filter(p => p._1.nonEmpty && p._2.nonEmpty).distinct.toMap
-
def str(m: Map[String, Object], name: String): String =
m(name).asInstanceOf[String].strip
planets =