This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch master-model
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master-model by this push:
new 3b82d25 WIP.
3b82d25 is described below
commit 3b82d25b71263bd7a75351d5e3d838ccb9e332be
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Oct 7 21:47:38 2021 +0300
WIP.
---
.../org/apache/nlpcraft/model/builders/NCModelBuilder.java | 2 +-
.../apache/nlpcraft/model/builders/NCModelConfigBuilder.java | 2 +-
.../nlpcraft/model/builders/NCMultiElementsBuilder.java | 6 +++---
.../nlpcraft/model/builders/NCSingleElementBuilder.java | 2 +-
nlpcraft/src/test/java/org/apache/nlpcraft/model/NCSpec.java | 12 ++++++------
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCModelBuilder.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCModelBuilder.java
index 00b77d4..395f864 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCModelBuilder.java
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCModelBuilder.java
@@ -8,7 +8,7 @@ public class NCModelBuilder {
return null;
}
- public NCModel make() {
+ public NCModel getModel() {
return null;
}
}
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCModelConfigBuilder.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCModelConfigBuilder.java
index cea4073..d84cb51 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCModelConfigBuilder.java
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCModelConfigBuilder.java
@@ -159,7 +159,7 @@ public class NCModelConfigBuilder {
return null;
}
- public NCModelConfig make() {
+ public NCModelConfig getModelConfig() {
return null;
}
}
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCMultiElementsBuilder.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCMultiElementsBuilder.java
index 43c21be..d561b3b 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCMultiElementsBuilder.java
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCMultiElementsBuilder.java
@@ -9,9 +9,6 @@ import java.util.Map;
import java.io.File;
public class NCMultiElementsBuilder {
- public NCMultiElementsBuilder withLoaders(Map<String, NCValueLoader>
loaders) {
- return null;
- }
public NCMultiElementsBuilder withFiles(File... files) {
return null;
}
@@ -21,6 +18,9 @@ public class NCMultiElementsBuilder {
public NCMultiElementsBuilder withClasses(Class<?>... classes) {
return null;
}
+ public NCMultiElementsBuilder withLoaders(Map<String, NCValueLoader>
loaders) {
+ return null;
+ }
public List<NCElement> getElements() {
return null;
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCSingleElementBuilder.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCSingleElementBuilder.java
index 296b801..d17f339 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCSingleElementBuilder.java
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/builders/NCSingleElementBuilder.java
@@ -33,7 +33,7 @@ public class NCSingleElementBuilder {
return null;
}
- public NCElement make() {
+ public NCElement getElement() {
return null;
}
}
diff --git a/nlpcraft/src/test/java/org/apache/nlpcraft/model/NCSpec.java
b/nlpcraft/src/test/java/org/apache/nlpcraft/model/NCSpec.java
index d6d8a29..209f905 100644
--- a/nlpcraft/src/test/java/org/apache/nlpcraft/model/NCSpec.java
+++ b/nlpcraft/src/test/java/org/apache/nlpcraft/model/NCSpec.java
@@ -44,7 +44,7 @@ public class NCSpec {
List<NCElement> elements = elemsProvider.getElements();
- elements.add(new
NCSingleElementBuilder().withId("additionalElementId").make());
+ elements.add(new
NCSingleElementBuilder().withId("additionalElementId").getElement());
class SomeClassWithIntents {
@NCIntentRef("remove:waypoint")
@@ -74,14 +74,14 @@ public class NCSpec {
return NCResult.text("OK");
}
}).
- make();
+ getModelConfig();
}
private NCModel getModel() {
return
new NCModelBuilder().
withConfig(getModelConfig()).
- make();
+ getModel();
}
@Test
@@ -108,12 +108,12 @@ public class NCSpec {
new NCSingleElementBuilder().
withId("elemeId").
withSynonyms(asList("element")).
- make()
+ getElement()
)
).
withIntentsDsl(asList("intent=req term(date)~{# ==
'opennlp:date'}?")).
- make()
- ).make();
+ getModelConfig()
+ ).getModel();
mdl.start();