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 2022/12/27 21:57:30 UTC

[incubator-nlpcraft] branch NLPCRAFT-520 updated: Update NCSemanticElement.scala

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

aradzinski 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 d839ae81 Update NCSemanticElement.scala
d839ae81 is described below

commit d839ae81f95cde84ef0727ff877229ee6e580b5f
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Tue Dec 27 13:57:25 2022 -0800

    Update NCSemanticElement.scala
---
 .../scala/org/apache/nlpcraft/nlp/parsers/NCSemanticElement.scala  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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 20780bc7..3957c698 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
@@ -22,7 +22,7 @@ import org.apache.nlpcraft.*
 /**
   *
   * Configuration element which helps to detect [[org.apache.nlpcraft.NCEntity NCEntity]] for
-  * **Semantic** implementation of [[org.apache.nlpcraft.NCEntityParser NCEntityParser]].
+  * **Semantic** entity parser [[NCSemanticEntityParser]].
   *
   * See detailed description on the website [[https://nlpcraft.apache.org/built-in-entity-parser.html#parser-semantic Semantic Parser]].
   *
@@ -32,6 +32,7 @@ trait NCSemanticElement:
     /**
       * Gets **type** for created [[NCEntity]] instance.
       * Representation of [[NCEntity.getType]] method.
+      *
       * @return Element type.
       */
     def getType: String
@@ -39,6 +40,7 @@ trait NCSemanticElement:
     /**
       * Gets **groups** for created [[NCEntity]] instance.
       * Representation of [[NCEntity.getGroups]] method.
+      *
       * @return Groups.
       */
     def getGroups: Set[String] = Set(getType)
@@ -47,18 +49,21 @@ trait NCSemanticElement:
       * Gets values map. Each element can contain multiple value,
       * each value is described as name and list of its synonyms.
       * They allows to find element's value in text.
+      *
       * @return Values.
       */
     def getValues: Map[String, Set[String]] = Map.empty
 
     /**
       * Gets elements synonyms list. They allows to find element in text.
+      *
       * @return Synonyms.
       */
     def getSynonyms: Set[String] = Set.empty
 
     /**
       * Gets [[NCPropertyMap metadata]] property for created [[NCEntity]] instance.
+      * 
       * @return Groups.
       */
     def getProperties: Map[String, AnyRef] = Map.empty