You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/03/19 07:38:49 UTC

[incubator-nlpcraft] branch NLPCRAFT-206 updated: Update NCEnricherNestedModelSpec5.scala

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

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


The following commit(s) were added to refs/heads/NLPCRAFT-206 by this push:
     new 05ca0a8  Update NCEnricherNestedModelSpec5.scala
05ca0a8 is described below

commit 05ca0a874893307e262874b6058b288b8f6509c8
Author: Aaron Radzinski <ar...@apache.org>
AuthorDate: Fri Mar 19 00:38:40 2021 -0700

    Update NCEnricherNestedModelSpec5.scala
---
 .../probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec5.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec5.scala b/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec5.scala
index 70e4737..175aebc 100644
--- a/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec5.scala
+++ b/nlpcraft/src/test/scala/org/apache/nlpcraft/probe/mgrs/nlp/enrichers/model/NCEnricherNestedModelSpec5.scala
@@ -37,7 +37,7 @@ class NCNestedTestModel5 extends NCModelAdapter(
         "intent=bigCity " +
         "term(city)={" +
         "    id() == 'cityWrapper' && " +
-        "    get(meta_part(part_token(token(), 'cityAlias'), 'nlpcraft:city:citymeta'), 'population') >= 10381222" +
+        "    get(meta_part(find_part(token(), 'cityAlias'), 'nlpcraft:city:citymeta'), 'population') >= 10381222" +
         "}"
     )
     private def onBigCity(ctx: NCIntentMatch): NCResult = NCResult.text("OK")