aboutsummaryrefslogtreecommitdiffstats
path: root/config-model
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2022-01-11 12:07:05 +0100
committerGitHub <noreply@github.com>2022-01-11 12:07:05 +0100
commitc2c3c614d0a3ffab1f49c403f72d830727839ca4 (patch)
tree8606c51c4ee4954162c8d04043e84dc1e5be4d32 /config-model
parent7121ee8a888e654d734aa93220dd9a6307e2e69b (diff)
parentc78e4774cc94fa67cb854b384aa27448253be628 (diff)
Merge pull request #20741 from vespa-engine/bratseth/rulebase-stemming
Stem by linguistics in rule bases
Diffstat (limited to 'config-model')
-rw-r--r--config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java b/config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java
index 68690bd83cd..8d83ec4cc5f 100644
--- a/config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java
+++ b/config-model/src/test/java/com/yahoo/vespa/model/container/search/SemanticRulesTest.java
@@ -2,6 +2,7 @@
package com.yahoo.vespa.model.container.search;
import com.yahoo.config.model.application.provider.FilesApplicationPackage;
+import com.yahoo.language.simple.SimpleLinguistics;
import com.yahoo.prelude.semantics.RuleBase;
import com.yahoo.prelude.semantics.RuleImporter;
import com.yahoo.prelude.semantics.SemanticRulesConfig;
@@ -39,7 +40,7 @@ public class SemanticRulesTest {
}
private static Map<String, RuleBase> toMap(SemanticRulesConfig config) throws ParseException, IOException {
- RuleImporter ruleImporter = new RuleImporter(config);
+ RuleImporter ruleImporter = new RuleImporter(config, new SimpleLinguistics());
Map<String, RuleBase> ruleBaseMap = new HashMap<>();
for (SemanticRulesConfig.Rulebase ruleBaseConfig : config.rulebase()) {
RuleBase ruleBase = ruleImporter.importConfig(ruleBaseConfig);