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 5c55864e Update NCOpenNLPTokenEnricher.scala
5c55864e is described below

commit 5c55864e926616dbf799aa7566062548dca76a60
Author: Aaron Radzinski <[email protected]>
AuthorDate: Thu Dec 15 11:52:13 2022 -0800

    Update NCOpenNLPTokenEnricher.scala
---
 .../org/apache/nlpcraft/nlp/enrichers/NCOpenNLPTokenEnricher.scala  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/enrichers/NCOpenNLPTokenEnricher.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/enrichers/NCOpenNLPTokenEnricher.scala
index 4b66c396..0321fab0 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/enrichers/NCOpenNLPTokenEnricher.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/nlp/enrichers/NCOpenNLPTokenEnricher.scala
@@ -39,10 +39,12 @@ import scala.concurrent.ExecutionContext
   *
   * @param posMdlRes Relative path, absolute path or URL to
   *         
[[https://opennlp.apache.org/docs/2.0.0/apidocs/opennlp-tools/opennlp/tools/postag/POSTaggerME.html
 POSTaggerME]] model.
-  *         Can be `null` if **part-of-speech** model is not configured, so 
`pos` property will not be passed.
+  *         Can be `null` if **part-of-speech** model is not configured, so 
`pos` property will not be set.
+  *         Note that at least one of the model must be provided.
   * @param lemmaDicRes Relative path, absolute path or URL to
   *         
[[https://opennlp.apache.org/docs/2.0.0/apidocs/opennlp-tools/opennlp/tools/lemmatizer/DictionaryLemmatizer.html
 DictionaryLemmatizer]] model.
-  *         Can be `null` if **lemmatizer** model is not configured, so 
`lemma` property will not be passed.
+  *         Can be `null` if **lemmatizer** model is not configured, so 
`lemma` property will not be set.
+  *         Note that at least one of the model must be provided.
   */
 class NCOpenNLPTokenEnricher(posMdlRes: String = null, lemmaDicRes: String = 
null) extends NCTokenEnricher with LazyLogging:
     require(posMdlRes != null || lemmaDicRes != null, "At least one model must 
be defined")

Reply via email to