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 60d8437 Fixed log formatting.
60d8437 is described below
commit 60d84377fb9b8440ddcc7ec4514307732dcc8d47
Author: Aaron Radzinski <[email protected]>
AuthorDate: Mon Aug 9 00:02:13 2021 -0700
Fixed log formatting.
---
.../main/scala/org/apache/nlpcraft/common/ascii/NCAsciiTable.scala | 2 +-
.../apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/ascii/NCAsciiTable.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/ascii/NCAsciiTable.scala
index 5232ecd..f824be6 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/ascii/NCAsciiTable.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/ascii/NCAsciiTable.scala
@@ -113,7 +113,7 @@ class NCAsciiTable {
private val HDR_VER = ansi256Fg(105, "|")
private val HDR_CRS = ansi256Fg(99, "+")
private val ROW_HOR = ansi256Fg(39, "-")
- private val ROW_VER = ansi256Fg(67, "|")
+ private val ROW_VER = ansi256Fg(39, "|")
private val ROW_CRS = ansi256Fg(202, "+")
// Headers & rows.
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala
index 37475ac..710b9f0 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/intent/solver/NCIntentSolverEngine.scala
@@ -281,7 +281,7 @@ object NCIntentSolverEngine extends LazyLogging with
NCOpenCensusTrace {
)
logger.warn(
- s"Two matching intents have the ${y(bo("same
weight"))} for their matches (variants weight will be used further):\n" +
+ s"Two matching intents have the same weight for
their matches (variants weight will be used further):\n" +
tbl.toString
)
@@ -597,7 +597,7 @@ object NCIntentSolverEngine extends LazyLogging with
NCOpenCensusTrace {
)
else {
if (usedSenToks.isEmpty && usedConvToks.isEmpty)
- logger.warn(s"Intent '$intentId' ${bo(y("matched"))}
but no tokens were used $varStr.")
+ logger.warn(s"Intent '$intentId' matched but no tokens
were used $varStr.")
// Number of remaining (unused) non-free words in the
sentence is a measure of exactness of the match.
// The match is exact when all non-free words are used in
that match.
@@ -637,7 +637,7 @@ object NCIntentSolverEngine extends LazyLogging with
NCOpenCensusTrace {
convToks: Seq[IntentToken]
): Option[TermMatch] = {
if (senToks.isEmpty && convToks.isEmpty)
- logger.warn(s"No tokens available to match on for term
'${term.toAnsiString}'.")
+ logger.warn(s"No tokens available to match on for the term
'${term.toAnsiString}'.")
try
solvePredicate(term.pred, idlCtx, term.min, term.max, senToks,
convToks) match {