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 162db51e WIP.
162db51e is described below
commit 162db51e53a8fe535c3d0ac212385f0d457865d8
Author: Sergey Kamov <[email protected]>
AuthorDate: Sat Jan 7 16:43:27 2023 +0400
WIP.
---
.../scala/org/apache/nlpcraft/nlp/parsers/NCSemanticElement.scala | 4 ++--
.../org/apache/nlpcraft/nlp/parsers/NCSemanticEntityParser.scala | 2 +-
2 files changed, 3 insertions(+), 3 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 e9f6c849..fb4cf6b6 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
@@ -63,8 +63,8 @@ import org.apache.nlpcraft.*
* "large": [ "{big|biggest|large|max|maximum|huge|enormous}
{size|piece|_}" ]
* </pre>
* Described above element **ord:pizza:size** can be detected via
values synonyms: *small*, *medium size*, *big piece* etc.
- * Note that **value** (small, medium or large in this example) is passed in
created [[NCEntity]] as property with key
- * **elemType:value** (ord:pizza:size:value in this example).
+ * Note that **value** (*small*, *medium* or *large* in this example) is
passed in created [[NCEntity]] as property with key
+ * **element-type:value** (*ord:pizza:size:value* in this
example).
*
* **NOTE** that given examples show how semantic elements synonyms and
values are represented via YAML format
* when these elements passed in [[NCSemanticEntityParser]] via semantic
model resource definition,
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 e0da8082..49869a4f 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
@@ -142,7 +142,7 @@ import NCSemanticEntityParser.*
* macros:
* "<OF>": "{of|for|per}"
* "<CUR>": "{current|present|now|local}"
- * "<TIME>": "{time <OF> day|day
time|date|time|moment|datetime|hour|o'clock|clock|date time|date and time|time
and date}"
+ * "<TIME>": "{time <OF> day|day
time|date|time|moment|datetime|hour|o'clock|clock|date time}"
* elements:
* - id: "x:time"
* description: "Date and/or time token indicator."