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 4be1777a WIP.
4be1777a is described below

commit 4be1777a8a3835e83ad3441591ece54e33cef742
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Jan 5 20:02:50 2023 +0400

    WIP.
---
 .../org/apache/nlpcraft/nlp/parsers/NCSemanticElement.scala |  8 ++++----
 .../nlpcraft/nlp/parsers/NCSemanticEntityParser.scala       | 13 +++++++------
 2 files changed, 11 insertions(+), 10 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 218f2a59..f619c1f3 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
@@ -21,10 +21,10 @@ import org.apache.nlpcraft.nlp.stemmer.NCStemmer
 import org.apache.nlpcraft.*
 /**
   * This trait defines configuration which helps to detect [[NCEntity]] of
-  * **Semantic** entity parser [[NCSemanticEntityParser]].
-  * It denotes a **named entity** [[NCEntity]] which is created by 
[[NCSemanticEntityParser]].
+  * [[NCSemanticEntityParser]].
+  * It denotes a **named entity** [[NCEntity]] which can be created by 
[[NCSemanticEntityParser]].
   *
-  * Each trait contains a set of synonyms to match on named entity.
+  * The trait contains a set of synonyms to match on named entity.
   * A synonym can have one or more individual words.
   * Note that element's type is its implicit synonym so that even if no 
additional synonyms are defined at least one synonym
   * always exists.
@@ -33,7 +33,7 @@ import org.apache.nlpcraft.*
   * with stemmatized forms of user input which were lemmatized preliminarily.
   * This approach allows to provide more accurate matching and doesn't force 
users to prepare synonyms in initial words form.
   *
-  * Also **Semantic** element can have an optional set of special synonyms 
called values or "proper nouns" for this element.
+  * Also **semantic** element can have an optional set of special synonyms 
called values or "proper nouns" for this element.
   * Unlike basic synonyms, each value is a pair of a name and a set of 
standard synonyms by which that value,
   * and ultimately its element, can be recognized in the user input.
   *
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 2ca49df1..3e3ad58d 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
@@ -126,15 +126,16 @@ import NCSemanticEntityParser.*
   * **Semantic** [[NCEntityParser entity parser]] implementation.
   *
   * This synonyms based parser provides simple but very powerful way to find 
domain specific data in the input text.
-  * It is configured via [[NCSemanticElement]] list which are represent 
[[NCEntity name entities]] and
+  * It is configured via [[NCSemanticElement]] list which are represent 
[[NCEntity name entities]] that
   * can be produced by this parser.
   *
-  * [[NCSemanticElement]] elements list can be configured via YAML or JSON 
files in special format or
-  * programmatically prepared list of [[NCSemanticElement]] can be passed in 
this parser directly.
+  * [[NCSemanticElement]] elements can be configured via YAML or JSON files in 
special format or
+  * passed in this parser as programmatically prepared list.
   *
-  * [[NCSemanticElement]] elements synonyms can be based on special
-  * [[https://nlpcraft.apache.org/built-in-entity-parser.html#macros macros]] 
definitions which can be provided
-  * in YAML and JSON files or passed directly in case when programmatically 
prepared list of [[NCSemanticElement]] passed in this parser.
+  * [[NCSemanticElement]] 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\
+  * [[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