This is an automated email from the ASF dual-hosted git repository. sergeykamov pushed a commit to branch NLPCRAFT-287 in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
commit bce36e74040eca44980931991e0931cb56e9bb47 Author: Sergey Kamov <[email protected]> AuthorDate: Tue Apr 6 12:41:19 2021 +0300 WIP. --- .../scala/org/apache/nlpcraft/probe/mgrs/NCProbeSynonym.scala | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeSynonym.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeSynonym.scala index e541f04..f5d624e 100644 --- a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeSynonym.scala +++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/NCProbeSynonym.scala @@ -182,20 +182,13 @@ class NCProbeSynonym( * @param toks * @return */ - def trySparseMatch(toks: NCNlpSentenceTokenBuffer): Option[Seq[NCNlpSentenceToken]] = { - val res = trySparseMatch0( + def trySparseMatch(toks: NCNlpSentenceTokenBuffer): Option[Seq[NCNlpSentenceToken]] = + trySparseMatch0( toks, isMatch, (t: NCNlpSentenceToken) ⇒ t.startCharIndex ) - println("toks="+toks.map(_.origText)) - println("res=" + res.isDefined) - println - - res - } - /** * * @param tows
