This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-147
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-147 by this push:
     new 0044762  WIP.
0044762 is described below

commit 00447626f62fa470dae8800db37ced700f38c39c
Author: Sergey Kamov <[email protected]>
AuthorDate: Fri Oct 9 09:39:11 2020 +0300

    WIP.
---
 .../org/apache/nlpcraft/model/NCIntentSample.java  | 12 ++++++-
 .../nlpcraft/model/NCIntentSampleRepeatable.java   | 37 ----------------------
 2 files changed, 11 insertions(+), 38 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSample.java 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSample.java
index f6452bb..d2b325b 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSample.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSample.java
@@ -47,7 +47,7 @@ import static java.lang.annotation.RetentionPolicy.*;
 // @Documented // TODO?  Documented is not valid here
 @Retention(value=RUNTIME)
 @Target(value=METHOD)
-@Repeatable(NCIntentSampleRepeatable.class)
+@Repeatable(NCIntentSample.NCIntentSampleList.class)
 public @interface NCIntentSample {
     /**
      * Gets a list of user input samples that should match corresponding 
intent. This annotation should be
@@ -56,4 +56,14 @@ public @interface NCIntentSample {
      * @return Set of user input examples that should match corresponding 
intent.
      */
     String[] value();
+
+    @Retention(RetentionPolicy.RUNTIME)
+    @Target(value=METHOD)
+    @interface NCIntentSampleList {
+        /**
+         * TODO:
+         * @return
+         */
+        NCIntentSample[] value();
+    }
 }
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSampleRepeatable.java
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSampleRepeatable.java
deleted file mode 100644
index 6c65eba..0000000
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/NCIntentSampleRepeatable.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.nlpcraft.model;
-
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-import static java.lang.annotation.ElementType.METHOD;
-
-@Retention(RetentionPolicy.RUNTIME)
-@Target(value=METHOD)
-/**
- * TODO:
- */
-public @interface NCIntentSampleRepeatable {
-    /**
-     * TODO:
-     * @return
-     */
-    NCIntentSample[] value();
-}

Reply via email to