This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch NLPCRAFT-468
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-468 by this push:
new 225fed5 WIP.
225fed5 is described below
commit 225fed53a7534cfb9dc30cee88cefce9d6975db6
Author: Sergey Kamov <[email protected]>
AuthorDate: Wed Oct 13 09:28:28 2021 +0300
WIP.
---
.../nlpcraft/model/components/detectors/NCDefaultStopWordsDetector.java | 1 +
nlpcraft/src/test/java/org/apache/nlpcraft/NCSpec.java | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/components/detectors/NCDefaultStopWordsDetector.java
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/components/detectors/NCDefaultStopWordsDetector.java
index 4f73d80..7b6c0a1 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/components/detectors/NCDefaultStopWordsDetector.java
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/components/detectors/NCDefaultStopWordsDetector.java
@@ -24,6 +24,7 @@ import org.apache.nlpcraft.model.nlp.NCNlpWordsDetector;
import java.util.Collections;
import java.util.List;
+import java.util.Set;
/**
* Stopwords detector default implementation.
diff --git a/nlpcraft/src/test/java/org/apache/nlpcraft/NCSpec.java
b/nlpcraft/src/test/java/org/apache/nlpcraft/NCSpec.java
index f494cdf..782852c 100644
--- a/nlpcraft/src/test/java/org/apache/nlpcraft/NCSpec.java
+++ b/nlpcraft/src/test/java/org/apache/nlpcraft/NCSpec.java
@@ -94,7 +94,7 @@ public class NCSpec {
withSuspiciousWordsDetector(new
NCConfiguredWordsDetector(Collections.singleton("bad"))).
withStopWordsDetector(
new NCDefaultStopWordsDetector(
- new HashSet<>() {{ add("stop1"); add("stop2"); }}
+ new HashSet<>() {{ add("stop1"); add("stop2"); }},
null
)
).