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 <[email protected]> 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.
