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 589bee1 WIP.
589bee1 is described below
commit 589bee143ab62852b583594990f723a3a501bb01
Author: Sergey Kamov <[email protected]>
AuthorDate: Wed Oct 13 09:21:12 2021 +0300
WIP.
---
.../components/detectors/NCDefaultStopWordsDetector.java | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
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 d410d65..4f73d80 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
@@ -40,6 +40,22 @@ public class NCDefaultStopWordsDetector implements
NCNlpWordsDetector {
this.excluded = excluded;
}
+ public Set<String> getAdditional() {
+ return additional;
+ }
+
+ public void setAdditional(Set<String> additional) {
+ this.additional = additional;
+ }
+
+ public Set<String> getExcluded() {
+ return excluded;
+ }
+
+ public void setExcluded(Set<String> excluded) {
+ this.excluded = excluded;
+ }
+
@Override
public List<NCNlpWord> detect(NCRequest req, NCModelConfig cfg,
List<NCNlpWord> sen) {
return Collections.emptyList();