This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-41
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-41 by this push:
new 59e8f71 WIP.
59e8f71 is described below
commit 59e8f7141f2aabfc7e66b4b36c9f592a27284504
Author: Sergey Kamov <[email protected]>
AuthorDate: Sat Sep 12 22:36:31 2020 +0300
WIP.
---
.../apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala
index 21c7145..dd66579 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala
@@ -392,14 +392,13 @@ object NCProbeEnrichmentManager extends NCService with
NCOpenCensusModelStats {
def get(): Seq[NCNlpSentenceNote] = h.getNotes().sortBy(p
⇒ (p.tokenIndexes.head, p.noteType))
val notes1 = get()
- h → h.enricher.enrich(mdlData, nlpSen, senMeta, span)
+ h.enricher.enrich(mdlData, nlpSen, senMeta, span)
val notes2 = get()
var same = notes1 == notes2
if (!same) {
- // TODO
def squeeze(typ: String): Boolean = {
val diff = notes2.filter(n ⇒ !notes1.contains(n))
@@ -412,7 +411,10 @@ object NCProbeEnrichmentManager extends NCService with
NCOpenCensusModelStats {
diffRedundant.foreach { case (del, similar) ⇒
if (DEEP_DEBUG)
- logger.trace(s"Redundant note removed:
$del, because similar exists: $similar")
+ logger.trace(
+ s"Redundant note removed, because
similar exists " +
+ s"[note=$del, similar=$similar,
type=$typ]"
+ )
nlpSen.removeNote(del)
}