This is an automated email from the ASF dual-hosted git repository. aradzinski pushed a commit to branch NLPCRAFT-472 in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit c267dffe92ee007784ceb1f49128fdf84a3694c8 Author: Aaron Radzinski <[email protected]> AuthorDate: Thu Jan 6 08:48:42 2022 -0800 WIP --- .../src/main/scala/org/apache/nlpcraft/NCModelConfigBuilder.java | 4 ++-- .../nlpcraft/nlp/entity/parser/semantic/NCSemanticEntityParser.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigBuilder.java b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigBuilder.java index b34cd7f..e9f4761 100644 --- a/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigBuilder.java +++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/NCModelConfigBuilder.java @@ -42,9 +42,9 @@ public class NCModelConfigBuilder { private NCTokenParser tokParser; public NCModelConfigBuilder(String id, String name, String version) { - Objects.requireNonNull(id, "Id cannot be null."); + Objects.requireNonNull(id, "ID cannot be null."); Objects.requireNonNull(name, "Name cannot be null."); - Objects.requireNonNull(version, "Version cannot be null"); + Objects.requireNonNull(version, "Version cannot be null."); this.id = id; this.name = name; diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/entity/parser/semantic/NCSemanticEntityParser.java b/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/entity/parser/semantic/NCSemanticEntityParser.java index c28f03e..2073048 100644 --- a/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/entity/parser/semantic/NCSemanticEntityParser.java +++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/entity/parser/semantic/NCSemanticEntityParser.java @@ -41,7 +41,7 @@ public class NCSemanticEntityParser implements NCEntityParser { * @param elems */ public NCSemanticEntityParser(List<NCSemanticElement> elems) { - Objects.requireNonNull(elems, "Elements cannot be null"); + Objects.requireNonNull(elems, "Elements cannot be null."); impl = NCSemanticEntityParserImpl.apply(Collections.emptyMap(), elems); } @@ -53,7 +53,7 @@ public class NCSemanticEntityParser implements NCEntityParser { * @param elems */ public NCSemanticEntityParser(Map<String, String> macros, List<NCSemanticElement> elems) { - Objects.requireNonNull(elems, "Elements cannot be null"); + Objects.requireNonNull(elems, "Elements cannot be null."); impl = NCSemanticEntityParserImpl.apply(macros, elems); } @@ -64,7 +64,7 @@ public class NCSemanticEntityParser implements NCEntityParser { * @param mdlSrc */ public NCSemanticEntityParser(String mdlSrc) { - Objects.requireNonNull(mdlSrc, "Source cannot be null"); + Objects.requireNonNull(mdlSrc, "Source cannot be null."); impl = NCSemanticEntityParserImpl.apply(mdlSrc); }
