You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2021/03/12 07:45:49 UTC

[incubator-nlpcraft] branch master_tmp created (now a41bbe0)

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

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


      at a41bbe0  Minor refactoring.

This branch includes the following new commits:

     new a41bbe0  Minor refactoring.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-nlpcraft] 01/01: Minor refactoring.

Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a41bbe0b440f5d1cb3b3a9c31b23f9686c7dba94
Author: Sergey Kamov <sk...@gmail.com>
AuthorDate: Fri Mar 12 10:45:33 2021 +0300

    Minor refactoring.
---
 .../scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceToken.scala     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceToken.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceToken.scala
index 6017a4b..fa79723 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceToken.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/common/nlp/NCNlpSentenceToken.scala
@@ -66,7 +66,7 @@ case class NCNlpSentenceToken(
       * @param noteType
       * @return
       */
-    def exists(noteType: String): Boolean = notes.exists(_.noteType == noteType)
+    def hasType(noteType: String): Boolean = notes.exists(_.noteType == noteType)
 
     /**
       * Clones note.
@@ -170,7 +170,7 @@ case class NCNlpSentenceToken(
       *
       * @param types Note type(s) to check.
       */
-    def isTypeOf(types: String*): Boolean = types.exists(exists)
+    def isTypeOf(types: String*): Boolean = types.exists(hasType)
 
     /**
       * Adds element.