This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-70_NEW
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-70_NEW by this push:
new 3423082 WIP.
3423082 is described below
commit 342308275907247169da901c5901c6089da99604
Author: Sergey Kamov <[email protected]>
AuthorDate: Sat Jun 26 09:31:28 2021 +0300
WIP.
---
.../scala/org/apache/nlpcraft/model/ctxword/NCContextWordSpec.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/ctxword/NCContextWordSpec.scala
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/ctxword/NCContextWordSpec.scala
index 6d86286..82610f5 100644
---
a/nlpcraft/src/test/scala/org/apache/nlpcraft/model/ctxword/NCContextWordSpec.scala
+++
b/nlpcraft/src/test/scala/org/apache/nlpcraft/model/ctxword/NCContextWordSpec.scala
@@ -81,9 +81,9 @@ class NCContextWordSpecModel extends NCModel {
@NCIntent("intent=classification term(cars)~{has(tok_groups(),
'testGroup')}*")
def onMatch(@NCIntentTerm("classification") toks: List[NCToken]): NCResult
= {
val groups = toks.flatMap(_.getGroups.asScala).mkString(" ")
- val texts = toks.map(_.getOriginalText).mkString(" ")
+ val words = toks.map(_.getOriginalText).mkString(" ")
- NCResult.text(toks.map(_.getOriginalText).mkString(" "))
+ NCResult.text(s"${groups.mkString(" ")} ${words.mkString(" ")}")
}
}