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

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


The following commit(s) were added to refs/heads/NLPCRAFT-500 by this push:
     new 71dad153 Minor refactoring.
71dad153 is described below

commit 71dad1537c96ee0bf9411c8a803a76e7e3fa0996
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Aug 25 16:42:07 2022 +0300

    Minor refactoring.
---
 .../internal/intent/compiler/NCIDLCompiler.scala   | 14 ++++++++++
 .../internal/intent/compiler/NCIDLFragment.scala   | 30 ----------------------
 2 files changed, 14 insertions(+), 30 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLCompiler.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLCompiler.scala
index e0c48480..c75987b4 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLCompiler.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLCompiler.scala
@@ -34,6 +34,20 @@ import java.util.Optional
 import java.util.regex.*
 import scala.collection.mutable
 
+/**
+  * IDL fragment.
+  *
+  * @param id ID of this fragment (must be unique within a model).
+  * @param terms List of terms this fragment defines.
+  */
+case class NCIDLFragment(id: String, terms: List[NCIDLTerm]):
+    require(id != null)
+    require(terms.nonEmpty)
+
+/**
+  *
+  * @param cfg
+  */
 class NCIDLCompiler(cfg: NCModelConfig) extends LazyLogging with 
mutable.Cloneable[NCIDLCompiler]:
     private val intents = mutable.HashMap.empty[String, Set[NCIDLIntent]]
 
diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLFragment.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLFragment.scala
deleted file mode 100644
index 83b1b871..00000000
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/internal/intent/compiler/NCIDLFragment.scala
+++ /dev/null
@@ -1,30 +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
- *
- *      https://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.internal.intent.compiler
-
-import org.apache.nlpcraft.internal.intent.*
-
-/**
-  * IDL fragment.
-  *
-  * @param id ID of this fragment (must be unique within a model).
-  * @param terms List of terms this fragment defines.
-  */
-case class NCIDLFragment(id: String, terms: List[NCIDLTerm]):
-    require(id != null)
-    require(terms.nonEmpty)

Reply via email to