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 be4bb92  WIP.
be4bb92 is described below

commit be4bb928c65b3bff552acc2a7d4014d3f5c6c72e
Author: Sergey Kamov <[email protected]>
AuthorDate: Mon Nov 29 15:02:20 2021 +0300

    WIP.
---
 .../org/apache/nlpcraft/model/NCModelAdapter.java  | 38 +++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCModelAdapter.java 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCModelAdapter.java
index bb225e3..0475da6 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCModelAdapter.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCModelAdapter.java
@@ -1,10 +1,14 @@
 package org.apache.nlpcraft.model;
 
+import org.apache.nlpcraft.model.builders.NCModelBuilder;
 import org.apache.nlpcraft.model.builders.NCModelConfigBuilder;
 
+import java.io.File;
+import java.net.URL;
 import java.util.List;
+import java.util.Map;
 
-public class NCModelAdapter implements NCModel {
+public abstract class NCModelAdapter implements NCModel {
     private final NCModelConfig cfg;
     private final NCModelBehaviour b;
 
@@ -18,6 +22,38 @@ public class NCModelAdapter implements NCModel {
         this(cfg, new NCModelBehaviour() {});
     }
 
+    // 3. Intents related methods:
+
+    // Static methods of given classes.
+    // Scanned for NCIntent, NCIntentRef, NCIntentSample, NCIntentSampleRef
+    public void withIntentsClasses(List<Class<?>> classes) {
+
+    }
+
+    // Methods of given instances.
+    // Scanned for NCIntent, NCIntentRef, NCIntentSample, NCIntentSampleRef
+    public void withIntentsObjects(List<Object> objs) {
+
+    }
+
+    // Manually defined intents.
+    // Code in classes and objects can have references on defined below 
intents and samples and via NCIntentRef and NCIntentSampleRef.
+    public void withIntentsDefinitions(List<String> intents) {
+
+    }
+    public void withIntentsSamples(Map<String, List<List<String>>> 
samplesByIntentIв) {
+
+    }
+
+    // Files only for intents, not for samples ?
+    public void withIntentsFromFiles(List<File> files) {
+
+    }
+    public void withIntentsFromUrls(List<URL> urls) {
+
+    }
+
+
     @Override
     public NCModelBehaviour getModelBehaviour() {
         return b;

Reply via email to