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

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


The following commit(s) were added to refs/heads/NLPCRAFT-520 by this push:
     new c51764b2 WIP.
c51764b2 is described below

commit c51764b2bd3ca75efe4ab903e8f972504ea1e4cc
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Jan 5 20:55:39 2023 +0400

    WIP.
---
 .../scala/org/apache/nlpcraft/nlp/parsers/NCSemanticElement.scala  | 7 ++++---
 .../org/apache/nlpcraft/nlp/parsers/NCSemanticEntityParser.scala   | 6 +++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCSemanticElement.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCSemanticElement.scala
index f619c1f3..68371517 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCSemanticElement.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCSemanticElement.scala
@@ -20,9 +20,10 @@ package org.apache.nlpcraft.nlp.parsers
 import org.apache.nlpcraft.nlp.stemmer.NCStemmer
 import org.apache.nlpcraft.*
 /**
-  * This trait defines configuration which helps to detect [[NCEntity]] of
-  * [[NCSemanticEntityParser]].
-  * It denotes a **named entity** [[NCEntity]] which can be created by 
[[NCSemanticEntityParser]].
+  * This trait is used in [[NCSemanticEntityParser]] and defines configuration
+  * which contains synonyms for [[NCEntity]] detection and properties which 
are used for new [[NCEntity]] instances creation.
+  *
+  * In other words it denotes a [[NCEntity named entity]] which can be created 
by [[NCSemanticEntityParser]].
   *
   * The trait contains a set of synonyms to match on named entity.
   * A synonym can have one or more individual words.
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCSemanticEntityParser.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCSemanticEntityParser.scala
index 3e3ad58d..2f4204f5 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCSemanticEntityParser.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/parsers/NCSemanticEntityParser.scala
@@ -129,12 +129,12 @@ import NCSemanticEntityParser.*
   * It is configured via [[NCSemanticElement]] list which are represent 
[[NCEntity name entities]] that
   * can be produced by this parser.
   *
-  * [[NCSemanticElement]] elements can be configured via YAML or JSON files in 
special format or
+  * [[NCSemanticElement Semantic elements]]  can be configured via YAML or 
JSON files in special format or
   * passed in this parser as programmatically prepared list.
   *
-  * [[NCSemanticElement]] elements contain set of synonyms which can use 
special
+  * [[NCSemanticElement Semantic elements]] contain set of synonyms which can 
use special
   * [[https://nlpcraft.apache.org/built-in-entity-parser.html#macros macros]].
-  * These macros also can be provided in YAML and JSON files or passed 
directly in case of programmatically prepared\
+  * These macros also can be provided via YAML and JSON files or passed 
directly in case of programmatically prepared
   * [[NCSemanticElement]] list.
   *
   * See detailed description on the website 
[[https://nlpcraft.apache.org/built-in-entity-parser.html#parser-semantic 
Semantic Parser]].

Reply via email to