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

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


The following commit(s) were added to refs/heads/NLPCRAFT-491 by this push:
     new 4d4a7767 Minor fixes.
4d4a7767 is described below

commit 4d4a776791db3873c1d2953eb26136a84e24757d
Author: Sergey Kamov <[email protected]>
AuthorDate: Mon Apr 4 22:47:08 2022 +0300

    Minor fixes.
---
 .../main/java/org/apache/nlpcraft/examples/order/OrderModel.scala  | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
 
b/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
index 08a6b1c3..6962b5a3 100644
--- 
a/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
+++ 
b/nlpcraft-examples/order/src/main/java/org/apache/nlpcraft/examples/order/OrderModel.scala
@@ -28,6 +28,7 @@ import org.apache.nlpcraft.nlp.entity.parser.*
 
 import scala.collection.mutable
 import org.apache.nlpcraft.NCResultType.*
+import org.apache.nlpcraft.examples.order.components.SimpleCombiner
 import org.apache.nlpcraft.nlp.entity.parser.semantic.{NCSemanticEntityParser, 
NCSemanticStemmer}
 import org.apache.nlpcraft.nlp.entity.parser.stanford.NCStanfordNLPEntityParser
 import org.apache.nlpcraft.nlp.token.parser.stanford.NCStanfordNLPTokenParser
@@ -101,6 +102,12 @@ class OrderModel extends NCModelAdapter (
             TOK_PARSER,
             "order_model.yaml"
         )).
+//        withEntityMappers(
+//            Seq(
+//                SimpleCombiner("ord:pizza:size", "ord:pizza:kind", "x"),
+//                SimpleCombiner("x", "stanford:number", "")
+//            ).asJava
+//        ).
         build()
 ) with LazyLogging:
     private val ords = mutable.HashMap.empty[String, OrderState]

Reply via email to