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/08/12 19:05:12 UTC

[incubator-nlpcraft] branch master updated: Fix for NLPCRAFT-412

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

aradzinski 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 7e19511  Fix for NLPCRAFT-412
7e19511 is described below

commit 7e19511724cb986a598b237512b32544dd457bfd
Author: Nikita Ivanov <ni...@kernal.local>
AuthorDate: Thu Aug 12 12:04:58 2021 -0700

    Fix for NLPCRAFT-412
---
 .../scala/org/apache/nlpcraft/model/impl/NCTokenLogger.scala     | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/impl/NCTokenLogger.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/impl/NCTokenLogger.scala
index 717f0b7..2bbc72a 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/impl/NCTokenLogger.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/impl/NCTokenLogger.scala
@@ -624,10 +624,15 @@ object NCTokenLogger extends LazyLogging {
                     }
 
                 tbl += (
-                    row
+                    (
+                        if (tok.getId == "nlpcraft:nlp")
+                            row.map(_.toString)
+                        else
+                            row.map(s => s"${ansi256Fg(183)}${s.toString}${ansiReset}")
+                    )
                     ++
                     // Token data.
-                    Seq(if (tok.getId == "nlpcraft:nlp") "" else s"<<$ansiBlueFg${tok.getId}$ansiReset>> $v") :_*
+                    Seq(if (tok.getId == "nlpcraft:nlp") "" else s"<<${ansi256Fg(183)}${tok.getId}$ansiReset>> $v") :_*
                 )
             }
         })