This is an automated email from the ASF dual-hosted git repository.
sergeykamov 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 2cedb41c WIP.
2cedb41c is described below
commit 2cedb41c4dbf5cf213a84ec3545237a1a66a0a1c
Author: Sergey Khisamov <[email protected]>
AuthorDate: Wed Dec 7 17:15:24 2022 +0400
WIP.
---
.../apache/nlpcraft/nlp/parsers/NCSemanticElement.scala | 16 +++++-----------
1 file changed, 5 insertions(+), 11 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 fb376d2f..621e35f1 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
@@ -36,25 +36,22 @@ package org.apache.nlpcraft.nlp.parsers
* Configuration which helps to detect [[org.apache.nlpcraft.NCEntity
NCEntity]] for
* <code>Semantic</code> implementation of
[[org.apache.nlpcraft.NCEntityParser NCEntityParser]].
*
- * See detailed description
[[https://nlpcraft.apache.org/built-in-entity-parser.html#parser-semantic
Semantic Parser]].
- *
+ * See detailed description
[[https://nlpcraft.apache.org/built-in-entity-parser.html#parser-semantic
Semantic Parser]].
* @see [[NCSemanticEntityParser]]
* @see [[NCSemanticStemmer]]
*/
trait NCSemanticElement:
/**
- * Gets <code>id<code> for created [[org.apache.nlpcraft.NCEntity
NCEntity]] instance.
+ * Gets <code>id</code> for created [[org.apache.nlpcraft.NCEntity
NCEntity]] instance.
* Representation of [[org.apache.nlpcraft.NCEntity.getId
NCEntity.getId()]] method.
- *
* @return Element ID.
*/
def getId: String
/**
- * Gets <code>groups<code> for created [[org.apache.nlpcraft.NCEntity
NCEntity]] instance.
+ * Gets <code>groups</code> for created [[org.apache.nlpcraft.NCEntity
NCEntity]] instance.
* Representation of [[org.apache.nlpcraft.NCEntity.getGroups
NCEntity.getGroups()]] method.
- *
- * @return Groups.
+ * @return Groups.
*/
def getGroups: Set[String] = Set(getId)
@@ -62,22 +59,19 @@ 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 optional <code>properties<code> map for created
[[org.apache.nlpcraft.NCEntity NCEntity]] instance.
+ * Gets optional <code>properties</code> map for created
[[org.apache.nlpcraft.NCEntity NCEntity]] instance.
* Representation of [[org.apache.nlpcraft.NCEntity NCEntity]] content.
- *
* @return Groups.
*/
def getProperties: Map[String, AnyRef] = Map.empty