This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-468
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-468 by this push:
new 8f98fb5 WIP.
8f98fb5 is described below
commit 8f98fb52c102f8b71ecca9d7970b67509d1cf21a
Author: Sergey Kamov <[email protected]>
AuthorDate: Mon Oct 11 23:12:50 2021 +0300
WIP.
---
nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCContext.java | 2 +-
.../org/apache/nlpcraft/model/impl/opennlp/NCOpenNlpNerParser.java | 2 +-
.../src/main/scala/org/apache/nlpcraft/model/nlp/NCNlpNerParser.java | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCContext.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCContext.java
index 8e812c2..e8df68f 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCContext.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCContext.java
@@ -47,7 +47,7 @@ public interface NCContext {
*
* @return Model.
*/
- NCModelConfig getModel();
+ NCModelConfig getModelConfig();
/**
* Gets supplemental information about user request.
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/impl/opennlp/NCOpenNlpNerParser.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/impl/opennlp/NCOpenNlpNerParser.java
index 1f0447e..3650fab 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/impl/opennlp/NCOpenNlpNerParser.java
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/impl/opennlp/NCOpenNlpNerParser.java
@@ -28,7 +28,7 @@ import java.util.List;
// Implementation by default for opennlp NERs. Stanford in another module.
public class NCOpenNlpNerParser implements NCNlpNerParser {
@Override
- public List<NCNlpNerToken> parse(NCRequest req, NCModelConfig mdl,
List<NCNlpRichWord> words, List<NCNlpNerToken> elements) {
+ public List<NCNlpNerToken> parse(NCRequest req, NCModelConfig cfg,
List<NCNlpRichWord> words, List<NCNlpNerToken> elements) {
return null;
}
}
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/nlp/NCNlpNerParser.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/nlp/NCNlpNerParser.java
index eb5dc2a..5f46915 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/nlp/NCNlpNerParser.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/nlp/NCNlpNerParser.java
@@ -55,11 +55,11 @@ public interface NCNlpNerParser {
* elements, but they still need to be defined normally in the model.
*
* @param req User request descriptor.
- * @param mdl Instance of data model this parser belongs to.
+ * @param cfg Instance of data model this parser belongs to.
* @param words Entire user input represented as a list of custom words.
* @param toks List of already parsed and detected model elements at the
point of this call.
* @return List of custom elements. List can be empty or {@code null} if
no model elements detected.
* @see NCModel#getParsers()
*/
- List<NCNlpNerToken> parse(NCRequest req, NCModelConfig mdl,
List<NCNlpRichWord> words, List<NCNlpNerToken> toks);
+ List<NCNlpNerToken> parse(NCRequest req, NCModelConfig cfg,
List<NCNlpRichWord> words, List<NCNlpNerToken> toks);
}