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

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

commit 638f37055f464d472c1b3f7f1daed2e8bb0b7194
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Jul 7 10:41:47 2022 +0300

    NCStanfordNLPEntityParser fixes.
---
 .../nlp/entity/parser/stanford/NCStanfordNLPEntityParser.scala        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/nlpcraft-stanford/src/main/scala/org/apache/nlpcraft/nlp/entity/parser/stanford/NCStanfordNLPEntityParser.scala
 
b/nlpcraft-stanford/src/main/scala/org/apache/nlpcraft/nlp/entity/parser/stanford/NCStanfordNLPEntityParser.scala
index d17e3c04..a684efab 100644
--- 
a/nlpcraft-stanford/src/main/scala/org/apache/nlpcraft/nlp/entity/parser/stanford/NCStanfordNLPEntityParser.scala
+++ 
b/nlpcraft-stanford/src/main/scala/org/apache/nlpcraft/nlp/entity/parser/stanford/NCStanfordNLPEntityParser.scala
@@ -31,8 +31,8 @@ import scala.jdk.CollectionConverters.*
   * @param supported
   */
 class NCStanfordNLPEntityParser(stanford: StanfordCoreNLP, supported: 
Set[String]) extends NCEntityParser:
-    require(stanford != null, "Stanford instance cannot be null.");
-    require(supported != null && supported.nonEmpty, "Supported elements set 
cannot be null or empty.");
+    require(stanford != null, "Stanford instance cannot be null.")
+    require(supported != null && supported.nonEmpty, "Supported elements set 
cannot be null or empty.")
 
     override def parse(req: NCRequest, cfg: NCModelConfig, toks: 
List[NCToken]): List[NCEntity] =
         val doc = new CoreDocument(req.getText)

Reply via email to