This is an automated email from the ASF dual-hosted git repository. sergeykamov pushed a commit to branch NLPCRAFT-483 in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-483 by this push: new 2d51a08 Minor fixes. 2d51a08 is described below commit 2d51a0804fb528b9fdcd454368f58bf3be93f9bd Author: Sergey Kamov <skhdlem...@gmail.com> AuthorDate: Tue Mar 1 11:19:50 2022 +0300 Minor fixes. --- .../lightswitch/nlp/token/enricher/NCRuStopWordsTokenEnricher.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nlpcraft-examples/lightswitch-ru/src/main/java/org/apache/nlpcraft/examples/lightswitch/nlp/token/enricher/NCRuStopWordsTokenEnricher.scala b/nlpcraft-examples/lightswitch-ru/src/main/java/org/apache/nlpcraft/examples/lightswitch/nlp/token/enricher/NCRuStopWordsTokenEnricher.scala index 082e63d..aaebce9 100644 --- a/nlpcraft-examples/lightswitch-ru/src/main/java/org/apache/nlpcraft/examples/lightswitch/nlp/token/enricher/NCRuStopWordsTokenEnricher.scala +++ b/nlpcraft-examples/lightswitch-ru/src/main/java/org/apache/nlpcraft/examples/lightswitch/nlp/token/enricher/NCRuStopWordsTokenEnricher.scala @@ -36,7 +36,7 @@ class NCRuStopWordsTokenEnricher extends NCTokenEnricher: t.put( "stopword", - lemma.length == 1 && !Character.isLetter(lemma.head) || + lemma.length == 1 && !Character.isLetter(lemma.head) && !Character.isDigit(lemma.head) || stops.contains(lemma.toLowerCase) || pos.startsWith("PARTICLE") || pos.startsWith("INTERJECTION") ||